diff options
author | Olivier Lamy <olamy@apache.org> | 2012-06-02 21:41:16 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2012-06-02 21:41:16 +0000 |
commit | 0c42d87da1c4a5ec94c9949634fdede91c65697c (patch) | |
tree | d8aa748d16389edd57bc54322becbd691a3d1aff | |
parent | 297bb0fcff28f5683fbde97e8e035a175e25bb43 (diff) | |
download | archiva-0c42d87da1c4a5ec94c9949634fdede91c65697c.tar.gz archiva-0c42d87da1c4a5ec94c9949634fdede91c65697c.zip |
fix junit
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1345591 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/SearchServiceTest.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/SearchServiceTest.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/SearchServiceTest.java index cb75bce99..81183f432 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/SearchServiceTest.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/SearchServiceTest.java @@ -22,6 +22,7 @@ import org.apache.archiva.admin.model.beans.UiConfiguration; import org.apache.archiva.rest.api.model.Artifact; import org.apache.archiva.rest.api.model.SearchRequest; import org.apache.archiva.rest.api.services.SearchService; +import org.fest.assertions.Assertions; import org.junit.Test; import java.util.Arrays; @@ -68,6 +69,7 @@ public class SearchServiceTest /** * same search but with Guest user + * * @throws Exception */ @Test @@ -225,10 +227,7 @@ public class SearchServiceTest List<Artifact> artifacts = searchService.searchArtifacts( searchRequest ); - assertNotNull( artifacts ); - assertTrue( - " not 2 results for Bundle Symbolic Name org.apache.karaf.features.core but " + artifacts.size() + ":" - + artifacts, artifacts.size() == 2 ); + Assertions.assertThat( artifacts ).isNotNull().hasSize( 2 ); for ( Artifact artifact : artifacts ) { @@ -236,7 +235,7 @@ public class SearchServiceTest String version = artifact.getVersion(); assertEquals( "http://localhost:" + port + "/repository/test-repo/org/apache/karaf/features/org.apache.karaf.features.core/" - + version + "/org.apache.karaf.features.core-" + version + ".bundle", artifact.getUrl() ); + + version + "/org.apache.karaf.features.core-" + version + ".jar", artifact.getUrl() ); } |