summaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-web/archiva-webdav
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2015-02-12 23:41:27 +1100
committerOlivier Lamy <olamy@apache.org>2015-02-12 23:41:27 +1100
commit1ba1188d64cf9a8ce2455557f34b53cbf36eb6c5 (patch)
tree20e5caf6ef96a0171e6434dcd7d4cdea0547b023 /archiva-modules/archiva-web/archiva-webdav
parent073f69fb90b6b8977a740d104e1b22938f1d8534 (diff)
downloadarchiva-1ba1188d64cf9a8ce2455557f34b53cbf36eb6c5.tar.gz
archiva-1ba1188d64cf9a8ce2455557f34b53cbf36eb6c5.zip
[MRM-1359] remove maven1 code
Diffstat (limited to 'archiva-modules/archiva-web/archiva-webdav')
-rw-r--r--archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/RepositoryServletNoProxyTest.java48
1 files changed, 12 insertions, 36 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 a30ec8c62..28453eae5 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
@@ -325,9 +325,7 @@ public class RepositoryServletNoProxyTest
WebRequest request = new GetMethodWebRequest( "http://machine.com/repository/legacy/" + commonsLangSha1 );
WebResponse response = getServletUnitClient().getResponse( request );
- assertResponseOK( response );
-
- assertEquals( "Expected file contents", "dummy-checksum", response.getContentAsString() );
+ assertResponseNotFound( response );
}
@Test
@@ -342,9 +340,7 @@ public class RepositoryServletNoProxyTest
WebRequest request = new GetMethodWebRequest( "http://machine.com/repository/legacy/" + commonsLangSha1 );
WebResponse response = getServletUnitClient().getResponse( request );
- assertResponseOK( response );
-
- assertEquals( "Expected file contents", "dummy-checksum", response.getContentAsString() );
+ assertResponseNotFound( response );
}
@Test
@@ -362,9 +358,7 @@ public class RepositoryServletNoProxyTest
WebRequest request = new GetMethodWebRequest( "http://machine.com/repository/legacy/" + commonsLangMetadata );
WebResponse response = getServletUnitClient().getResponse( request );
- assertResponseOK( response );
-
- assertEquals( "Expected file contents", expectedMetadataContents, response.getContentAsString() );
+ assertResponseNotFound( response );
}
@Test
@@ -382,9 +376,7 @@ public class RepositoryServletNoProxyTest
WebRequest request = new GetMethodWebRequest( "http://machine.com/repository/legacy/" + commonsLangMetadata );
WebResponse response = getServletUnitClient().getResponse( request );
- assertResponseOK( response );
-
- assertEquals( "Expected file contents", expectedMetadataContents, response.getContentAsString() );
+ assertResponseNotFound( response );
}
@Test
@@ -401,9 +393,7 @@ public class RepositoryServletNoProxyTest
WebRequest request = new GetMethodWebRequest( "http://machine.com/repository/legacy/" + commonsLangMetadata );
WebResponse response = getServletUnitClient().getResponse( request );
- assertResponseOK( response );
-
- assertEquals( "Expected file contents", expectedMetadataContents, response.getContentAsString() );
+ assertResponseNotFound( response );
}
@Test
@@ -420,9 +410,7 @@ public class RepositoryServletNoProxyTest
WebRequest request = new GetMethodWebRequest( "http://machine.com/repository/legacy/" + commonsLangJar );
WebResponse response = getServletUnitClient().getResponse( request );
- assertResponseOK( response );
-
- assertEquals( "Expected file contents", expectedArtifactContents, response.getContentAsString() );
+ assertResponseNotFound( response );
}
@Test
@@ -439,9 +427,7 @@ public class RepositoryServletNoProxyTest
WebRequest request = new GetMethodWebRequest( "http://machine.com/repository/legacy/" + commonsLangJar );
WebResponse response = getServletUnitClient().getResponse( request );
- assertResponseOK( response );
-
- assertEquals( "Expected file contents", expectedArtifactContents, response.getContentAsString() );
+ assertResponseNotFound( response );
}
@Test
@@ -458,9 +444,7 @@ public class RepositoryServletNoProxyTest
WebRequest request = new GetMethodWebRequest( "http://machine.com/repository/legacy/" + commonsLangJar );
WebResponse response = getServletUnitClient().getResponse( request );
- assertResponseOK( response );
-
- assertEquals( "Expected file contents", expectedArtifactContents, response.getContentAsString() );
+ assertResponseNotFound( response );
}
@Test
@@ -495,9 +479,7 @@ public class RepositoryServletNoProxyTest
WebRequest request = new GetMethodWebRequest( "http://machine.com/repository/legacy/" + commonsLangJar );
WebResponse response = getServletUnitClient().getResponse( request );
- assertResponseOK( response );
-
- assertEquals( "Expected file contents", expectedArtifactContents, response.getContentAsString() );
+ assertResponseNotFound( response );
}
@Test
@@ -514,9 +496,7 @@ public class RepositoryServletNoProxyTest
WebRequest request = new GetMethodWebRequest( "http://machine.com/repository/legacy/" + commonsLangJar );
WebResponse response = getServletUnitClient().getResponse( request );
- assertResponseOK( response );
-
- assertEquals( "Expected file contents", expectedArtifactContents, response.getContentAsString() );
+ assertResponseNotFound( response );
}
/**
@@ -536,9 +516,7 @@ public class RepositoryServletNoProxyTest
WebRequest request = new GetMethodWebRequest( "http://machine.com/repository/legacy/" + dualExtensionPath );
WebResponse response = getServletUnitClient().getResponse( request );
- assertResponseOK( response );
-
- assertEquals( "Expected file contents", expectedContents, response.getContentAsString() );
+ assertResponseNotFound( response );
}
@Test
@@ -555,9 +533,7 @@ public class RepositoryServletNoProxyTest
WebRequest request = new GetMethodWebRequest( "http://machine.com/repository/legacy/" + dualExtensionPath );
WebResponse response = getServletUnitClient().getResponse( request );
- assertResponseOK( response );
-
- assertEquals( "Expected file contents", expectedContents, response.getContentAsString() );
+ assertResponseNotFound( response );
}
}