]> source.dussan.org Git - archiva.git/commitdiff
using maven 1 legacy generate 404
authorOlivier Lamy <olamy@apache.org>
Thu, 12 Feb 2015 22:42:20 +0000 (09:42 +1100)
committerOlivier Lamy <olamy@apache.org>
Thu, 12 Feb 2015 22:42:20 +0000 (09:42 +1100)
archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/RepositoryServletNoProxyTest.java
archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/RepositoryServletProxiedRelocatedTest.java

index 28453eae5978323e1a75f31b3338eb78f5e2dfe4..004d16d26fde76b6ae5c15fc2540380dfa25760f 100644 (file)
@@ -229,9 +229,7 @@ public class RepositoryServletNoProxyTest
         //WebRequest request = new GetMethodWebRequest(
         //    "http://machine.com/repository/internal/" + "commons-lang/jars/commons-lang-2.1-SNAPSHOT.jar" );
         WebResponse response = getWebResponse( "/repository/internal/commons-lang/jars/commons-lang-2.1-SNAPSHOT.jar" );
-        assertResponseOK( response );
-
-        assertEquals( "Expected file contents", expectedArtifactContents, response.getContentAsString() );
+        assertResponseNotFound( response );
     }
 
     @Test
index 2775be426d7d969c657661a1c6e67e9f4c8bee74..0f9a123a881305883b92b8f3170c845302b8fd1e 100644 (file)
@@ -72,7 +72,7 @@ public class RepositoryServletProxiedRelocatedTest
         WebResponse response = getServletUnitClient().getResponse( request );
 
         // --- Verification
-        assertResponseOK( response );
-        assertEquals( "Expected remote file contents", expectedRemoteContents, response.getContentAsString() );
+        assertResponseNotFound( response );
+
     }
 }