LEFT | RIGHT |
1 package org.adblockplus.libadblockplus.tests; | 1 package org.adblockplus.libadblockplus.tests; |
2 | 2 |
3 import org.adblockplus.android.Utils; | 3 import org.adblockplus.libadblockplus.android.Utils; |
4 import org.junit.Test; | 4 import org.junit.Test; |
5 | 5 |
6 import java.util.Arrays; | 6 import java.util.Arrays; |
7 import java.util.LinkedList; | 7 import java.util.LinkedList; |
8 import java.util.List; | 8 import java.util.List; |
9 | 9 |
10 /** | 10 /** |
11 * Test for Utils | 11 * Test for Utils |
12 */ | 12 */ |
13 public class UtilsTest extends BaseJsTest | 13 public class UtilsTest extends BaseJsTest |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 | 46 |
47 @Test | 47 @Test |
48 public void testJson_singleWithNull() | 48 public void testJson_singleWithNull() |
49 { | 49 { |
50 final List<String> list = new LinkedList<String>(); | 50 final List<String> list = new LinkedList<String>(); |
51 list.add(null); | 51 list.add(null); |
52 String json = Utils.stringListToJsonArray(list); | 52 String json = Utils.stringListToJsonArray(list); |
53 assertEquals("[]", json); | 53 assertEquals("[]", json); |
54 } | 54 } |
55 } | 55 } |
LEFT | RIGHT |