From d533e27ab231cbeeb9e59f3671510e461564e046 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Fri, 13 Feb 2015 09:42:20 +1100 Subject: [PATCH] using maven 1 legacy generate 404 --- .../apache/archiva/webdav/RepositoryServletNoProxyTest.java | 4 +--- .../archiva/webdav/RepositoryServletProxiedRelocatedTest.java | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/RepositoryServletNoProxyTest.java b/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/RepositoryServletNoProxyTest.java index 28453eae5..004d16d26 100644 --- a/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/RepositoryServletNoProxyTest.java +++ b/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/RepositoryServletNoProxyTest.java @@ -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 diff --git a/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/RepositoryServletProxiedRelocatedTest.java b/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/RepositoryServletProxiedRelocatedTest.java index 2775be426..0f9a123a8 100644 --- a/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/RepositoryServletProxiedRelocatedTest.java +++ b/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/RepositoryServletProxiedRelocatedTest.java @@ -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 ); + } } -- 2.39.5