From bad86d8284fb48bd130370eefb8d8c7ae25ab44c Mon Sep 17 00:00:00 2001 From: daniel oeh Date: Tue, 31 Dec 2013 01:27:05 +0100 Subject: Escape URLs in HttpDownloader. fixes #329, #332 --- .../de/test/antennapod/service/download/HttpDownloaderTest.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/instrumentationTest/de') diff --git a/src/instrumentationTest/de/test/antennapod/service/download/HttpDownloaderTest.java b/src/instrumentationTest/de/test/antennapod/service/download/HttpDownloaderTest.java index 8df35ce67..5506a3bc9 100644 --- a/src/instrumentationTest/de/test/antennapod/service/download/HttpDownloaderTest.java +++ b/src/instrumentationTest/de/test/antennapod/service/download/HttpDownloaderTest.java @@ -108,6 +108,12 @@ public class HttpDownloaderTest extends InstrumentationTestCase { assertFalse(new File(feedFile.getFile_url()).exists()); } + /* TODO: replace with smaller test file + public void testUrlWithSpaces() { + download("http://acedl.noxsolutions.com/ace/Don't Call Salman Rushdie Sneezy in Finland.mp3", "testUrlWithSpaces", true); + } + */ + private static class FeedFileImpl extends FeedFile { public FeedFileImpl(String download_url) { super(null, download_url, false); -- cgit v1.2.3