]> source.dussan.org Git - archiva.git/commitdiff
cleanup
authorOlivier Lamy <olamy@apache.org>
Wed, 11 Feb 2015 11:43:49 +0000 (22:43 +1100)
committerOlivier Lamy <olamy@apache.org>
Wed, 11 Feb 2015 11:43:49 +0000 (22:43 +1100)
archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/remotedownload/DownloadArtifactFromQueryTest.java

index 341d8388e8ff82c1768c4549dd41cea3dd2c6bc0..559f332a63ccdcd30bce62df673a28b38d74c28e 100644 (file)
@@ -137,12 +137,6 @@ public class DownloadArtifactFromQueryTest
                 getSearchService().redirectToArtifactFile( null, "org.apache.archiva", "archiva-test", "1.0", null,
                                                            null );
 
-            Assert.assertEquals( Response.Status.TEMPORARY_REDIRECT.getStatusCode(), response.getStatus() );
-
-            //String location = String.class.cast( response.getMetadata().get( "Location" ).get( 0 ) );
-
-            //Assert.assertEquals( "http://localhost:" + port + "/repository/" + id
-            //                         + "/org/apache/archiva/archiva-test/1.0/archiva-test-1.0.jar", location );
         }
         catch ( RedirectionException e )
         {
@@ -171,15 +165,6 @@ public class DownloadArtifactFromQueryTest
                 getSearchService().redirectToArtifactFile( null, "org.apache.archiva", "archiva-test", "LATEST", null,
                                                            null );
 
-            Assert.assertEquals( Response.Status.TEMPORARY_REDIRECT.getStatusCode(), response.getStatus() );
-
-            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/2.0/archiva-test-2.0.jar", location );
-
         }
         catch ( RedirectionException e )
         {