use of android.test.suitebuilder.annotation.Suppress in project 360-Engine-for-Android by 360.
the class AuthenticatorTest method testGetAccountRemovalAllowed.
/**
* Test the getAccountRemovalAllowed() method.
*/
@SmallTest
@Suppress
public final void testGetAccountRemovalAllowed() {
final TestStatus testStatus = new TestStatus();
Authenticator authenticator = new Authenticator(getContext(), new MainApplication() {
public void removeUserData() {
/*
* Test that the dummy mWakeListener.notifyOfWakeupAlarm() has
* been called, otherwise the test must fail.
*/
testStatus.setPass(true);
}
});
Bundle bundle = null;
try {
bundle = authenticator.getAccountRemovalAllowed(null, null);
} catch (NetworkErrorException e) {
fail("Unexpected NetworkErrorException");
}
/**
* Test if removeUserData() was called. *
*/
assertTrue("Expecting the removeUserData() dummy method to have " + "been called", testStatus.isPass());
assertEquals("Expected a KEY_BOOLEAN_RESULT boolean", true, bundle.getBoolean(AccountManager.KEY_BOOLEAN_RESULT));
}
use of android.test.suitebuilder.annotation.Suppress in project 360-Engine-for-Android by 360.
the class SyncAdapterTest method testOnSyncComplete.
/**
* Test the onSyncComplete() method.
*/
@SmallTest
@Suppress
public final void testOnSyncComplete() {
SyncAdapter syncAdapter = new SyncAdapter(null, null);
syncAdapter.onSyncComplete(null);
assertTrue("No errors so far", true);
}
use of android.test.suitebuilder.annotation.Suppress in project 360-Engine-for-Android by 360.
the class SyncAdapterTest method testOnProgressEvent.
/**
* Test the onProgressEvent() method.
*/
@SmallTest
@Suppress
public final void testOnProgressEvent() {
SyncAdapter syncAdapter = new SyncAdapter(null, null);
syncAdapter.onProgressEvent(null, 0);
assertTrue("No errors so far", true);
}
use of android.test.suitebuilder.annotation.Suppress in project 360-Engine-for-Android by 360.
the class SyncAdapterTest method testSyncAdapter.
/**
* Test the SyncAdapter constructor.
*/
@SmallTest
@Suppress
public final void testSyncAdapter() {
SyncAdapter syncAdapter = new SyncAdapter(null, null);
assertNotNull("SyncAdapter should not be NULL", syncAdapter);
}
use of android.test.suitebuilder.annotation.Suppress in project 360-Engine-for-Android by 360.
the class SyncAdapterTest method testOnPerformSync.
/**
* Test the onPerformSync() method.
*/
@SmallTest
@Suppress
public final void testOnPerformSync() {
SyncAdapter syncAdapter = new SyncAdapter(null, null);
syncAdapter.onPerformSync(null, null, null, null, null);
assertTrue("No errors so far", true);
}
Aggregations