OLD | NEW |
1 package org.adblockplus.libadblockplus.tests; | 1 package org.adblockplus.libadblockplus.tests; |
2 | 2 |
3 import android.test.InstrumentationTestCase; | 3 import android.test.InstrumentationTestCase; |
4 | 4 |
5 import org.adblockplus.libadblockplus.android.Utils; | 5 import org.adblockplus.libadblockplus.android.Utils; |
6 import org.junit.Test; | 6 import org.junit.Test; |
7 | 7 |
8 import java.util.Arrays; | 8 import java.util.Arrays; |
9 import java.util.LinkedList; | 9 import java.util.LinkedList; |
10 import java.util.List; | 10 import java.util.List; |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 } | 119 } |
120 | 120 |
121 @Test | 121 @Test |
122 public void testUrlWithoutParams_multipleQuestionMarks() | 122 public void testUrlWithoutParams_multipleQuestionMarks() |
123 { | 123 { |
124 String url = Utils.getUrlWithoutParams("https://www.google.com?q=123?t=123")
; // invalid URL | 124 String url = Utils.getUrlWithoutParams("https://www.google.com?q=123?t=123")
; // invalid URL |
125 assertNotNull(url); | 125 assertNotNull(url); |
126 assertEquals("https://www.google.com", url); | 126 assertEquals("https://www.google.com", url); |
127 } | 127 } |
128 } | 128 } |
OLD | NEW |