diff options
author | Olivier Lamy <olamy@apache.org> | 2015-02-11 22:34:16 +1100 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2015-02-11 22:34:16 +1100 |
commit | 28dae86beaf01bc0646a65e2fe31738d7c5727cd (patch) | |
tree | 34a33a9bd788ffeeab26faad1ebdb1e9535be633 /archiva-modules/archiva-web/archiva-web-common | |
parent | 4374c550e4a082fbc290826abca0b1244f6eee43 (diff) | |
download | archiva-28dae86beaf01bc0646a65e2fe31738d7c5727cd.tar.gz archiva-28dae86beaf01bc0646a65e2fe31738d7c5727cd.zip |
format
Diffstat (limited to 'archiva-modules/archiva-web/archiva-web-common')
-rw-r--r-- | archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/remotedownload/DownloadArtifactFromQueryTest.java | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/remotedownload/DownloadArtifactFromQueryTest.java b/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/remotedownload/DownloadArtifactFromQueryTest.java index c108af3e9..cedd46a24 100644 --- a/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/remotedownload/DownloadArtifactFromQueryTest.java +++ b/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/remotedownload/DownloadArtifactFromQueryTest.java @@ -52,8 +52,7 @@ public class DownloadArtifactFromQueryTest previousAppServerBase = System.getProperty( "appserver.base" ); System.setProperty( "appserver.base", new File( System.getProperty( "java.io.tmpdir" ) ).getCanonicalPath() + "/target/" - + DownloadArtifactFromQueryTest.class.getName() - ); + + DownloadArtifactFromQueryTest.class.getName() ); } @AfterClass @@ -139,11 +138,8 @@ public class DownloadArtifactFromQueryTest String location = String.class.cast( response.getMetadata().get( "Location" ).get( 0 ) ); - /// http://localhost:57168/repository/1400639145722/org/apache/archiva/archiva-test/1.0/archiva-test-1.0.jar - Assert.assertEquals( "http://localhost:" + port + "/repository/" + id - + "/org/apache/archiva/archiva-test/1.0/archiva-test-1.0.jar", location - ); + + "/org/apache/archiva/archiva-test/1.0/archiva-test-1.0.jar", location ); } finally { @@ -172,8 +168,7 @@ public class DownloadArtifactFromQueryTest /// http://localhost:57168/repository/1400639145722/org/apache/archiva/archiva-test/1.0/archiva-test-1.0.jar Assert.assertEquals( "http://localhost:" + port + "/repository/" + id - + "/org/apache/archiva/archiva-test/2.0/archiva-test-2.0.jar", location - ); + + "/org/apache/archiva/archiva-test/2.0/archiva-test-2.0.jar", location ); } @@ -193,8 +188,8 @@ public class DownloadArtifactFromQueryTest try { Response response = - getSearchService().redirectToArtifactFile( null, "org.apache.archiva.beer", "archiva-wine", "LATEST", null, - null ); + getSearchService().redirectToArtifactFile( null, "org.apache.archiva.beer", "archiva-wine", "LATEST", + null, null ); Assert.assertEquals( Response.Status.NO_CONTENT.getStatusCode(), response.getStatus() ); |