Skip to content

Commit 67b8035

Browse files
committed
Add test that verifies authenticator is detected
1 parent a9f6960 commit 67b8035

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

integration-tests/src/main/java/com/github/mobile/tests/tests/user/LoginActivityTest.java

+10
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@
1515
*/
1616
package com.github.mobile.tests.tests.user;
1717

18+
import android.accounts.AccountManager;
1819
import android.view.View;
1920
import android.widget.EditText;
2021

22+
import com.github.mobile.accounts.AccountUtils;
2123
import com.github.mobile.accounts.LoginActivity;
2224
import com.github.mobile.tests.ActivityTest;
2325
import com.viewpagerindicator.R.id;
@@ -34,6 +36,14 @@ public LoginActivityTest() {
3436
super(LoginActivity.class);
3537
}
3638

39+
/**
40+
* Verify authenticator is registered
41+
*/
42+
public void testHasAuthenticator() {
43+
assertTrue(AccountUtils.hasAuthenticator(AccountManager
44+
.get(getActivity())));
45+
}
46+
3747
/**
3848
* Verify activity was created successfully
3949
*

0 commit comments

Comments
 (0)