]> source.dussan.org Git - archiva.git/commitdiff
add missing dependency
authorOlivier Lamy <olamy@apache.org>
Wed, 11 Feb 2015 11:32:54 +0000 (22:32 +1100)
committerOlivier Lamy <olamy@apache.org>
Wed, 11 Feb 2015 11:32:54 +0000 (22:32 +1100)
archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/BrowseServiceTest.java
archiva-modules/archiva-web/archiva-web-common/pom.xml

index 8c5ac149ba891b5c872ced56ab11279433ac56ac..848d4b7a62c23f18c993acadbbf017baee15a0e7 100644 (file)
@@ -89,26 +89,34 @@ public class BrowseServiceTest
     public void metadatagetthenaddthendelete()
         throws Exception
     {
-        scanRepo( TEST_REPO_ID );
+        try
+        {
+            scanRepo( TEST_REPO_ID );
 
-        BrowseService browseService = getBrowseService( authorizationHeader, false );
+            BrowseService browseService = getBrowseService( authorizationHeader, false );
 
-        Map<String, String> metadatas =
-            toMap( browseService.getMetadatas( "commons-cli", "commons-cli", "1.0", TEST_REPO_ID ) );
+            Map<String, String> metadatas =
+                toMap( browseService.getMetadatas( "commons-cli", "commons-cli", "1.0", TEST_REPO_ID ) );
 
-        assertThat( metadatas ).isNotNull().isEmpty();
+            assertThat( metadatas ).isNotNull().isEmpty();
 
-        browseService.addMetadata( "commons-cli", "commons-cli", "1.0", "wine", "bordeaux", TEST_REPO_ID );
+            browseService.addMetadata( "commons-cli", "commons-cli", "1.0", "wine", "bordeaux", TEST_REPO_ID );
 
-        metadatas = toMap( browseService.getMetadatas( "commons-cli", "commons-cli", "1.0", TEST_REPO_ID ) );
+            metadatas = toMap( browseService.getMetadatas( "commons-cli", "commons-cli", "1.0", TEST_REPO_ID ) );
 
-        assertThat( metadatas ).isNotNull().isNotEmpty().contains( MapEntry.entry( "wine", "bordeaux" ) );
+            assertThat( metadatas ).isNotNull().isNotEmpty().contains( MapEntry.entry( "wine", "bordeaux" ) );
 
-        browseService.deleteMetadata( "commons-cli", "commons-cli", "1.0", "wine", TEST_REPO_ID );
+            browseService.deleteMetadata( "commons-cli", "commons-cli", "1.0", "wine", TEST_REPO_ID );
 
-        metadatas = toMap( browseService.getMetadatas( "commons-cli", "commons-cli", "1.0", TEST_REPO_ID ) );
+            metadatas = toMap( browseService.getMetadatas( "commons-cli", "commons-cli", "1.0", TEST_REPO_ID ) );
 
-        assertThat( metadatas ).isNotNull().isEmpty();
+            assertThat( metadatas ).isNotNull().isEmpty();
+        }
+        catch ( ArchivaRestServiceException e )
+        {
+            log.error( e.getMessage(), e );
+            throw e;
+        }
     }
 
     @Test
index f392d949bf706d51de10b901ad14027d703b8367..b91634c6ad5d43b0447280a3e801cba6ef2a0b18 100644 (file)
           <artifactId>slf4j-simple</artifactId>
         </exclusion>
       </exclusions>
-    </dependency> 
+    </dependency>
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>jul-to-slf4j</artifactId>
+      <scope>test</scope>
+    </dependency>
     <dependency>
       <groupId>org.apache.maven.wagon</groupId>
       <artifactId>wagon-http</artifactId>