diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2014-10-09 21:29:30 +0200 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2014-10-09 21:29:30 +0200 |
commit | baa7d5f11283cb7668d45b561af5d38f0ccb9632 (patch) | |
tree | 21cb976e8f2a948dae44bc014fb2c6ed62f81157 /src/instrumentationTest/de/test/antennapod | |
parent | a8bf235017d5896c0691ad056727dafc72c63596 (diff) | |
parent | 4d622cb27ab54dc081d81285128b9c70f8dd37ac (diff) | |
download | AntennaPod-baa7d5f11283cb7668d45b561af5d38f0ccb9632.zip |
Merge branch 'develop'0.9.9.4
Diffstat (limited to 'src/instrumentationTest/de/test/antennapod')
-rw-r--r-- | src/instrumentationTest/de/test/antennapod/util/URLCheckerTest.java | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/instrumentationTest/de/test/antennapod/util/URLCheckerTest.java b/src/instrumentationTest/de/test/antennapod/util/URLCheckerTest.java index 08fd0d486..fa99303b1 100644 --- a/src/instrumentationTest/de/test/antennapod/util/URLCheckerTest.java +++ b/src/instrumentationTest/de/test/antennapod/util/URLCheckerTest.java @@ -32,7 +32,7 @@ public class URLCheckerTest extends AndroidTestCase { assertEquals("http://example.com", out); } - public void testPcastProtocol() { + public void testPcastProtocolNoScheme() { final String in = "pcast://example.com"; final String out = URLChecker.prepareURL(in); assertEquals("http://example.com", out); @@ -55,4 +55,22 @@ public class URLCheckerTest extends AndroidTestCase { final String out = URLChecker.prepareURL(in); assertEquals("http://example.com", out); } + + public void testAntennaPodSubscribeProtocolNoScheme() throws Exception { + final String in = "antennapod-subscribe://example.com"; + final String out = URLChecker.prepareURL(in); + assertEquals("http://example.com", out); + } + + public void testPcastProtocolWithScheme() { + final String in = "pcast://https://example.com"; + final String out = URLChecker.prepareURL(in); + assertEquals("https://example.com", out); + } + + public void testAntennaPodSubscribeProtocolWithScheme() throws Exception { + final String in = "antennapod-subscribe://https://example.com"; + final String out = URLChecker.prepareURL(in); + assertEquals("https://example.com", out); + } } |