use of com.vodafone360.people.service.Authenticator in project 360-Engine-for-Android by 360.
the class AuthenticatorTest method testConfirmCredentials.
/***
* Test the confirmCredentials() method.
*/
@SmallTest
public final void testConfirmCredentials() {
Authenticator authenticator = new Authenticator(getContext(), mApplication);
assertNull("Expected confirmCredentials() to return NULL", authenticator.confirmCredentials(null, null, null));
}
use of com.vodafone360.people.service.Authenticator in project 360-Engine-for-Android by 360.
the class AuthenticatorTest method testUpdateCredentials.
/***
* Test the updateCredentials() method.
*/
@SmallTest
public final void testUpdateCredentials() {
Authenticator authenticator = new Authenticator(getContext(), mApplication);
assertNull("Expected updateCredentials() to return NULL", authenticator.updateCredentials(null, null, null, null));
}
use of com.vodafone360.people.service.Authenticator in project 360-Engine-for-Android by 360.
the class AuthenticatorTest method testAuthenticator.
/*
* ########## END FRAMEWORK CLASSES. ##########
*/
/***
* Test the Authenticator constructor.
*/
@SmallTest
public final void testAuthenticator() {
Authenticator authenticator = new Authenticator(getContext(), mApplication);
assertNotNull("Authenticator should not be NULL", authenticator);
}
use of com.vodafone360.people.service.Authenticator in project 360-Engine-for-Android by 360.
the class AuthenticatorTest method testAddAccount.
/***
* Test the getParcelable() method.
*/
@SmallTest
public final void testAddAccount() {
Authenticator authenticator = new Authenticator(getContext(), mApplication);
NativeContactsApi.createInstance(getContext());
Bundle bundle = authenticator.addAccount(null, null, null, null, null);
Intent intent = (Intent) bundle.getParcelable(AccountManager.KEY_INTENT);
assertEquals("Expected a StartActivity Intent", intent.getComponent().getClassName(), "com.vodafone360.people.ui.StartActivity");
assertNull("Expected a ACTION_ONE_ACCOUNT_ONLY_INTENT action to be NULL", intent.getAction());
}
Aggregations