summaryrefslogtreecommitdiff
path: root/tests/src/com/android/contacts/editor/ContactEditorUtilsTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/com/android/contacts/editor/ContactEditorUtilsTest.java')
-rw-r--r--tests/src/com/android/contacts/editor/ContactEditorUtilsTest.java31
1 files changed, 0 insertions, 31 deletions
diff --git a/tests/src/com/android/contacts/editor/ContactEditorUtilsTest.java b/tests/src/com/android/contacts/editor/ContactEditorUtilsTest.java
index f6c2d1b1c..9756a0c50 100644
--- a/tests/src/com/android/contacts/editor/ContactEditorUtilsTest.java
+++ b/tests/src/com/android/contacts/editor/ContactEditorUtilsTest.java
@@ -79,37 +79,6 @@ public class ContactEditorUtilsTest extends AndroidTestCase {
mAccountTypes.mAccounts = accounts;
}
- public void testGetWritableAccountTypeStrings() {
- String[] types;
-
- // 0 writable types
- setAccountTypes();
-
- types = mTarget.getWritableAccountTypeStrings();
- MoreAsserts.assertEquals(types, new String[0]);
-
- // 1 writable type
- setAccountTypes(TYPE1);
-
- types = mTarget.getWritableAccountTypeStrings();
- MoreAsserts.assertEquals(Sets.newHashSet(TYPE1.accountType), Sets.newHashSet(types));
-
- // 2 writable types
- setAccountTypes(TYPE1, TYPE2EX);
-
- types = mTarget.getWritableAccountTypeStrings();
- MoreAsserts.assertEquals(Sets.newHashSet(TYPE1.accountType, TYPE2EX.accountType),
- Sets.newHashSet(types));
-
- // 3 writable types + 1 readonly type
- setAccountTypes(TYPE1, TYPE2, TYPE2EX, TYPE3);
-
- types = mTarget.getWritableAccountTypeStrings();
- MoreAsserts.assertEquals(
- Sets.newHashSet(TYPE1.accountType, TYPE2.accountType, TYPE2EX.accountType),
- Sets.newHashSet(types));
- }
-
/**
* Test for
* - {@link ContactEditorUtils#saveDefaultAccount}