Skip to content

Commit 29f7c77

Browse files
committed
Remove unreachable server tests
1 parent bfcef6a commit 29f7c77

2 files changed

Lines changed: 0 additions & 20 deletions

File tree

test/java/org/apache/ivy/util/url/BasicURLHandlerTest.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,6 @@ public void testIsReachable() throws Exception {
5555
assertFalse(handler.isReachable(new URL("ftp://ftp.mozilla.org/unknown.file")));
5656
}
5757

58-
public void testContentEncoding() throws Exception {
59-
assertDownloadOK(new URL("http://carsten.codimi.de/gzip.yaws/daniels.html"), new File(testDir, "gzip.txt"));
60-
assertDownloadOK(new URL("http://carsten.codimi.de/gzip.yaws/daniels.html?deflate=on&zlib=on"), new File(testDir, "deflate-zlib.txt"));
61-
assertDownloadOK(new URL("http://carsten.codimi.de/gzip.yaws/daniels.html?deflate=on"), new File(testDir, "deflate.txt"));
62-
assertDownloadOK(new URL("http://carsten.codimi.de/gzip.yaws/a5.ps"), new File(testDir, "a5-gzip.ps"));
63-
assertDownloadOK(new URL("http://carsten.codimi.de/gzip.yaws/a5.ps?deflate=on"), new File(testDir, "a5-deflate.ps"));
64-
assertDownloadOK(new URL("http://carsten.codimi.de/gzip.yaws/nh80.pdf"), new File(testDir, "nh80-gzip.pdf"));
65-
assertDownloadOK(new URL("http://carsten.codimi.de/gzip.yaws/nh80.pdf?deflate=on"), new File(testDir, "nh80-deflate.pdf"));
66-
}
67-
6858
private void assertDownloadOK(URL url, File file) throws Exception {
6959
handler.download(url, file, null);
7060
assertTrue(file.exists());

test/java/org/apache/ivy/util/url/HttpclientURLHandlerTest.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,6 @@ public void testGetURLInfo() throws Exception {
5959
assertEquals(URLHandler.UNAVAILABLE, info);
6060
}
6161

62-
public void testContentEncoding() throws Exception {
63-
assertDownloadOK(new URL("http://carsten.codimi.de/gzip.yaws/daniels.html"), new File(testDir, "gzip.txt"));
64-
assertDownloadOK(new URL("http://carsten.codimi.de/gzip.yaws/daniels.html?deflate=on&zlib=on"), new File(testDir, "deflate-zlib.txt"));
65-
assertDownloadOK(new URL("http://carsten.codimi.de/gzip.yaws/daniels.html?deflate=on"), new File(testDir, "deflate.txt"));
66-
assertDownloadOK(new URL("http://carsten.codimi.de/gzip.yaws/a5.ps"), new File(testDir, "a5-gzip.ps"));
67-
assertDownloadOK(new URL("http://carsten.codimi.de/gzip.yaws/a5.ps?deflate=on"), new File(testDir, "a5-deflate.ps"));
68-
assertDownloadOK(new URL("http://carsten.codimi.de/gzip.yaws/nh80.pdf"), new File(testDir, "nh80-gzip.pdf"));
69-
assertDownloadOK(new URL("http://carsten.codimi.de/gzip.yaws/nh80.pdf?deflate=on"), new File(testDir, "nh80-deflate.pdf"));
70-
}
71-
7262
private void assertDownloadOK(URL url, File file) throws Exception {
7363
handler.download(url, file, null);
7464
assertTrue(file.exists());

0 commit comments

Comments
 (0)