diff options
author | Olivier Lamy <olamy@apache.org> | 2015-02-13 09:42:20 +1100 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2015-02-13 09:42:20 +1100 |
commit | d533e27ab231cbeeb9e59f3671510e461564e046 (patch) | |
tree | 44ed31adc99b52c92c430548bd613379b6a29316 /archiva-modules | |
parent | 1ba1188d64cf9a8ce2455557f34b53cbf36eb6c5 (diff) | |
download | archiva-d533e27ab231cbeeb9e59f3671510e461564e046.tar.gz archiva-d533e27ab231cbeeb9e59f3671510e461564e046.zip |
using maven 1 legacy generate 404
Diffstat (limited to 'archiva-modules')
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 ); + } } |