diff options
author | ByteHamster <info@bytehamster.com> | 2020-07-20 00:12:30 +0200 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2020-07-21 09:45:12 +0200 |
commit | 9d23279f475cacc1da4a9eec183ddb8a68fbd8b6 (patch) | |
tree | b0e536066ac2e76e0ff6b4ca6187da33c21709f1 /app/src/androidTest/java/de/test/antennapod/util | |
parent | 607999064398eba9bd37b9a93c3c8ac19d00a9de (diff) | |
download | AntennaPod-9d23279f475cacc1da4a9eec183ddb8a68fbd8b6.zip |
Accept more malformed subscribtion URIs
Diffstat (limited to 'app/src/androidTest/java/de/test/antennapod/util')
-rw-r--r-- | app/src/androidTest/java/de/test/antennapod/util/URLCheckerTest.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/src/androidTest/java/de/test/antennapod/util/URLCheckerTest.java b/app/src/androidTest/java/de/test/antennapod/util/URLCheckerTest.java index 4893d7d82..7f26ff612 100644 --- a/app/src/androidTest/java/de/test/antennapod/util/URLCheckerTest.java +++ b/app/src/androidTest/java/de/test/antennapod/util/URLCheckerTest.java @@ -57,6 +57,13 @@ public class URLCheckerTest { } @Test + public void testItpcProtocolWithScheme() { + final String in = "itpc://https://example.com"; + final String out = URLChecker.prepareURL(in); + assertEquals("https://example.com", out); + } + + @Test public void testWhiteSpaceUrlShouldNotAppend() { final String in = "\n http://example.com \t"; final String out = URLChecker.prepareURL(in); |