summaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-web/archiva-rest
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2014-05-21 12:09:03 +1000
committerOlivier Lamy <olamy@apache.org>2014-05-21 12:09:03 +1000
commit89ec8af055cde53187ae1ebfd945d903f8e69b47 (patch)
tree131e943ff07553e14189368739f88afd6df32bcc /archiva-modules/archiva-web/archiva-rest
parentb272a1bc2ff3009bc47895253a50439572fa9d2e (diff)
downloadarchiva-89ec8af055cde53187ae1ebfd945d903f8e69b47.tar.gz
archiva-89ec8af055cde53187ae1ebfd945d903f8e69b47.zip
fix context when know repositoryarchiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/AbstractRestService.java
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/SearchServiceTest.java14
1 files changed, 9 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 a3ad4cdcb..a073b2430 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,13 +22,15 @@ import org.apache.archiva.admin.model.beans.UiConfiguration;
import org.apache.archiva.maven2.model.Artifact;
import org.apache.archiva.rest.api.model.SearchRequest;
import org.apache.archiva.rest.api.services.SearchService;
-import static org.assertj.core.api.Assertions.assertThat;
+import org.assertj.core.api.Assertions;
import org.junit.Test;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
+import static org.assertj.core.api.Assertions.assertThat;
+
/**
* @author Olivier Lamy
*/
@@ -199,7 +201,8 @@ public class SearchServiceTest
assertNotNull( artifacts );
assertTrue(
" not 1 results for Bundle Symbolic Name org.apache.karaf.features.command but " + artifacts.size() + ":"
- + artifacts, artifacts.size() == 1 );
+ + artifacts, artifacts.size() == 1
+ );
deleteTestRepo( testRepoId );
}
@@ -233,9 +236,10 @@ public class SearchServiceTest
{
log.info( "url: {}", artifact.getUrl() );
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 + ".jar", artifact.getUrl() );
+ Assertions.assertThat( artifact.getUrl() ) //
+ .isEqualTo( "http://localhost:" + port
+ + "/repository/test-repo/org/apache/karaf/features/org.apache.karaf.features.core/"
+ + version + "/org.apache.karaf.features.core-" + version + ".jar" );
}