Permalink
Browse files

Add test that verifies authenticator is detected

  • Loading branch information...
1 parent a9f6960 commit 67b803563eb0362ed52a1aae7def53ead79b94b7 @kevinsawicki kevinsawicki committed Jul 10, 2012
@@ -15,9 +15,11 @@
*/
package com.github.mobile.tests.tests.user;
+import android.accounts.AccountManager;
import android.view.View;
import android.widget.EditText;
+import com.github.mobile.accounts.AccountUtils;
import com.github.mobile.accounts.LoginActivity;
import com.github.mobile.tests.ActivityTest;
import com.viewpagerindicator.R.id;
@@ -35,6 +37,14 @@ public LoginActivityTest() {
}
/**
+ * Verify authenticator is registered
+ */
+ public void testHasAuthenticator() {
+ assertTrue(AccountUtils.hasAuthenticator(AccountManager
+ .get(getActivity())));
+ }
+
+ /**
* Verify activity was created successfully
*
* @throws Throwable

0 comments on commit 67b8035

Please sign in to comment.