diff options
author | Olivier Lamy <olamy@apache.org> | 2015-02-11 22:32:54 +1100 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2015-02-11 22:32:54 +1100 |
commit | 4374c550e4a082fbc290826abca0b1244f6eee43 (patch) | |
tree | 682369b56b894aaf628a4c502c116acc881c0bde /archiva-modules/archiva-web/archiva-rest | |
parent | 1feb9a99f6a45879e536cfc6fbd919aba6e970df (diff) | |
download | archiva-4374c550e4a082fbc290826abca0b1244f6eee43.tar.gz archiva-4374c550e4a082fbc290826abca0b1244f6eee43.zip |
add missing dependency
Diffstat (limited to 'archiva-modules/archiva-web/archiva-rest')
-rw-r--r-- | archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/BrowseServiceTest.java | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/BrowseServiceTest.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/BrowseServiceTest.java index 8c5ac149b..848d4b7a6 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/BrowseServiceTest.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/BrowseServiceTest.java @@ -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 |