Browse Source

Restructured test dependencies

* All modules now have commons-test as test dependency.
* commons-test has dependencies to junit, hamcrest and mockito
Markus Kreusch 9 years ago
parent
commit
1804a52740

+ 9 - 0
main/commons-test/pom.xml

@@ -14,6 +14,15 @@
 	<description>Shared utilities for tests</description>
 
 	<dependencies>
+		<dependency>
+			<groupId>junit</groupId>
+			<artifactId>junit</artifactId>
+		</dependency>
+		<dependency>
+			<groupId>org.hamcrest</groupId>
+			<artifactId>hamcrest-all</artifactId>
+			<scope>compile</scope>
+		</dependency>
 		<dependency>
 			<groupId>org.hamcrest</groupId>
 			<artifactId>hamcrest-all</artifactId>

+ 6 - 0
main/core/pom.xml

@@ -73,6 +73,12 @@
 			<groupId>com.fasterxml.jackson.core</groupId>
 			<artifactId>jackson-databind</artifactId>
 		</dependency>
+		
+		<!-- Tests -->
+		<dependency>
+			<groupId>org.cryptomator</groupId>
+			<artifactId>commons-test</artifactId>
+		</dependency>
 	</dependencies>
 
 	<build>

+ 6 - 0
main/crypto-aes/pom.xml

@@ -76,6 +76,12 @@
 			<artifactId>dagger-compiler</artifactId>
 			<scope>provided</scope>
 		</dependency>
+		
+		<!-- Tests -->
+		<dependency>
+			<groupId>org.cryptomator</groupId>
+			<artifactId>commons-test</artifactId>
+		</dependency>
 	</dependencies>
 	
 	<build>

+ 6 - 0
main/crypto-api/pom.xml

@@ -31,6 +31,12 @@
 			<groupId>org.apache.commons</groupId>
 			<artifactId>commons-collections4</artifactId>
 		</dependency>
+		
+		<!-- Tests -->
+		<dependency>
+			<groupId>org.cryptomator</groupId>
+			<artifactId>commons-test</artifactId>
+		</dependency>
 	</dependencies>
 	
 	<build>

+ 4 - 0
main/filesystem-api/pom.xml

@@ -28,6 +28,10 @@
 			<groupId>org.apache.commons</groupId>
 			<artifactId>commons-collections4</artifactId>
 		</dependency>
+		<dependency>
+			<groupId>org.cryptomator</groupId>
+			<artifactId>commons-test</artifactId>
+		</dependency>
 	</dependencies>
 	
 	<build>

+ 5 - 2
main/filesystem-crypto/pom.xml

@@ -60,11 +60,14 @@
 			<artifactId>jackson-databind</artifactId>
 		</dependency>
 		
-		<!-- Test dependencies -->
+		<!-- Tests -->
+		<dependency>
+			<groupId>org.cryptomator</groupId>
+			<artifactId>commons-test</artifactId>
+		</dependency>
 		<dependency>
 			<groupId>org.cryptomator</groupId>
 			<artifactId>filesystem-inmemory</artifactId>
-			<scope>test</scope>
 		</dependency>
 	</dependencies>
 	

+ 6 - 0
main/filesystem-inmemory/pom.xml

@@ -22,6 +22,12 @@
 			<groupId>org.cryptomator</groupId>
 			<artifactId>filesystem-api</artifactId>
 		</dependency>
+		
+		<!-- Tests -->
+		<dependency>
+			<groupId>org.cryptomator</groupId>
+			<artifactId>commons-test</artifactId>
+		</dependency>
 	</dependencies>
 	
 	<build>

+ 5 - 2
main/filesystem-nameshortening/pom.xml

@@ -39,11 +39,14 @@
 			<artifactId>jackson-databind</artifactId>
 		</dependency>
 
-		<!-- Test dependencies -->
+		<!-- Tests -->
+		<dependency>
+			<groupId>org.cryptomator</groupId>
+			<artifactId>commons-test</artifactId>
+		</dependency>
 		<dependency>
 			<groupId>org.cryptomator</groupId>
 			<artifactId>filesystem-inmemory</artifactId>
-			<scope>test</scope>
 		</dependency>
 	</dependencies>
 

+ 1 - 8
main/filesystem-nio/pom.xml

@@ -37,18 +37,11 @@
 			<artifactId>guava</artifactId>
 		</dependency>
 
+		<!-- Tests -->
 		<dependency>
 			<groupId>org.cryptomator</groupId>
 			<artifactId>commons-test</artifactId>
 		</dependency>
-		<dependency>
-			<groupId>org.mockito</groupId>
-			<artifactId>mockito-core</artifactId>
-		</dependency>
-		<dependency>
-			<groupId>org.hamcrest</groupId>
-			<artifactId>hamcrest-all</artifactId>
-		</dependency>
 	</dependencies>
 
 	<build>

+ 1 - 3
main/pom.xml

@@ -71,6 +71,7 @@
 				<groupId>org.cryptomator</groupId>
 				<artifactId>filesystem-inmemory</artifactId>
 				<version>${project.version}</version>
+				<scope>test</scope>
 			</dependency>
 			<dependency>
 				<groupId>org.cryptomator</groupId>
@@ -186,7 +187,6 @@
 				<groupId>junit</groupId>
 				<artifactId>junit</artifactId>
 				<version>${junit.version}</version>
-				<scope>test</scope>
 				<exclusions>
 					<exclusion>
 						<artifactId>hamcrest-core</artifactId>
@@ -198,7 +198,6 @@
 				<groupId>org.mockito</groupId>
 				<artifactId>mockito-core</artifactId>
 				<version>${mockito.version}</version>
-				<scope>test</scope>
 				<exclusions>
 					<exclusion>
 						<artifactId>hamcrest-core</artifactId>
@@ -210,7 +209,6 @@
 				<groupId>org.hamcrest</groupId>
 				<artifactId>hamcrest-all</artifactId>
 				<version>${hamcrest.version}</version>
-				<scope>test</scope>
 			</dependency>
 		</dependencies>
 	</dependencyManagement>

+ 6 - 0
main/ui/pom.xml

@@ -63,5 +63,11 @@
 			<artifactId>dagger-compiler</artifactId>
 			<scope>provided</scope>
 		</dependency>
+		
+		<!-- Tests -->
+		<dependency>
+			<groupId>org.cryptomator</groupId>
+			<artifactId>commons-test</artifactId>
+		</dependency>
 	</dependencies>
 </project>