Search in sources :

Example 81 with Suppress

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));
}
Also used : NetworkErrorException(android.accounts.NetworkErrorException) TestStatus(com.vodafone360.people.tests.testutils.TestStatus) Bundle(android.os.Bundle) Authenticator(com.vodafone360.people.service.Authenticator) MainApplication(com.vodafone360.people.MainApplication) SmallTest(android.test.suitebuilder.annotation.SmallTest) Suppress(android.test.suitebuilder.annotation.Suppress)

Example 82 with Suppress

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);
}
Also used : SyncAdapter(com.vodafone360.people.service.SyncAdapter) SmallTest(android.test.suitebuilder.annotation.SmallTest) Suppress(android.test.suitebuilder.annotation.Suppress)

Example 83 with Suppress

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);
}
Also used : SyncAdapter(com.vodafone360.people.service.SyncAdapter) SmallTest(android.test.suitebuilder.annotation.SmallTest) Suppress(android.test.suitebuilder.annotation.Suppress)

Example 84 with Suppress

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);
}
Also used : SyncAdapter(com.vodafone360.people.service.SyncAdapter) SmallTest(android.test.suitebuilder.annotation.SmallTest) Suppress(android.test.suitebuilder.annotation.Suppress)

Example 85 with Suppress

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);
}
Also used : SyncAdapter(com.vodafone360.people.service.SyncAdapter) SmallTest(android.test.suitebuilder.annotation.SmallTest) Suppress(android.test.suitebuilder.annotation.Suppress)

Aggregations

Suppress (android.test.suitebuilder.annotation.Suppress)191 MediumTest (android.test.suitebuilder.annotation.MediumTest)69 ServiceStatus (com.vodafone360.people.service.ServiceStatus)39 Cursor (android.database.Cursor)29 Contact (com.vodafone360.people.datatypes.Contact)28 ArrayList (java.util.ArrayList)26 SmallTest (android.test.suitebuilder.annotation.SmallTest)17 ContactDetail (com.vodafone360.people.datatypes.ContactDetail)16 Intent (android.content.Intent)15 LargeTest (android.test.suitebuilder.annotation.LargeTest)14 ContentValues (android.content.ContentValues)13 NetworkStats (android.net.NetworkStats)13 Uri (android.net.Uri)12 Time (android.text.format.Time)12 Random (java.util.Random)12 DatabaseHelper (com.vodafone360.people.database.DatabaseHelper)11 IEngineEventCallback (com.vodafone360.people.engine.IEngineEventCallback)11 IContactSyncCallback (com.vodafone360.people.engine.contactsync.IContactSyncCallback)11 ProcessorFactory (com.vodafone360.people.engine.contactsync.ProcessorFactory)11 DownloadManager (android.app.DownloadManager)10