diff options
author | 2015-04-08 18:58:13 -0700 | |
---|---|---|
committer | 2015-04-09 18:35:57 -0700 | |
commit | 541ef56e057eb7d81eae6e294ce9eb364f825867 (patch) | |
tree | c93a7ac2544be385b55738007601738615620a06 /tests/src/com/android/inputmethod/latin/utils/CollectionUtilsTests.java | |
parent | 7f386acdd1bcf7bfd6b48ee4d01bf3f2dc52e2ce (diff) | |
download | latinime-541ef56e057eb7d81eae6e294ce9eb364f825867.tar.gz latinime-541ef56e057eb7d81eae6e294ce9eb364f825867.tar.xz latinime-541ef56e057eb7d81eae6e294ce9eb364f825867.zip |
Personal dictionary feeds a personal LM.
Bug 20043003.
Change-Id: I5ccac344c089855474263d1cdc547da1e6779301
Diffstat (limited to 'tests/src/com/android/inputmethod/latin/utils/CollectionUtilsTests.java')
-rw-r--r-- | tests/src/com/android/inputmethod/latin/utils/CollectionUtilsTests.java | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/tests/src/com/android/inputmethod/latin/utils/CollectionUtilsTests.java b/tests/src/com/android/inputmethod/latin/utils/CollectionUtilsTests.java index 6871a41d5..0cbb02c4f 100644 --- a/tests/src/com/android/inputmethod/latin/utils/CollectionUtilsTests.java +++ b/tests/src/com/android/inputmethod/latin/utils/CollectionUtilsTests.java @@ -68,7 +68,7 @@ public class CollectionUtilsTests extends AndroidTestCase { */ public void testArrayAsList() { final ArrayList<String> empty = new ArrayList<>(); - assertEquals(empty, CollectionUtils.arrayAsList(new String[] { }, 0, 0)); + assertEquals(empty, CollectionUtils.arrayAsList(new String[] {}, 0, 0)); final String[] array = { "0", "1", "2", "3", "4" }; assertEquals(empty, CollectionUtils.arrayAsList(array, 0, 0)); assertEquals(empty, CollectionUtils.arrayAsList(array, 1, 1)); @@ -82,12 +82,10 @@ public class CollectionUtilsTests extends AndroidTestCase { * results for a few cases. */ public void testIsNullOrEmpty() { - assertTrue(CollectionUtils.isNullOrEmpty((List) null)); - assertTrue(CollectionUtils.isNullOrEmpty((Map) null)); - assertTrue(CollectionUtils.isNullOrEmpty(new ArrayList())); - assertTrue(CollectionUtils.isNullOrEmpty(new HashMap())); - assertTrue(CollectionUtils.isNullOrEmpty(Collections.EMPTY_LIST)); - assertTrue(CollectionUtils.isNullOrEmpty(Collections.EMPTY_MAP)); + assertTrue(CollectionUtils.isNullOrEmpty((List<String>) null)); + assertTrue(CollectionUtils.isNullOrEmpty((Map<String, String>) null)); + assertTrue(CollectionUtils.isNullOrEmpty(new ArrayList<String>())); + assertTrue(CollectionUtils.isNullOrEmpty(new HashMap<String, String>())); assertFalse(CollectionUtils.isNullOrEmpty(Collections.singletonList("Not empty"))); assertFalse(CollectionUtils.isNullOrEmpty(Collections.singletonMap("Not", "empty"))); } |