Search in sources :

Example 1 with FetchNativeContacts

use of com.vodafone360.people.engine.contactsync.FetchNativeContacts in project 360-Engine-for-Android by 360.

the class DefaultProcessorFactoryTest method testProcessorTypeCreation.

/**
     * Tests the type of the created processor depending on the requested type.
     */
@Suppress
public void testProcessorTypeCreation() {
    DefaultProcessorFactory factory = new DefaultProcessorFactory();
    BaseSyncProcessor processor;
    processor = factory.create(ProcessorFactory.DOWNLOAD_SERVER_CONTACTS, null, null);
    assertTrue(processor instanceof DownloadServerContacts);
    processor = factory.create(ProcessorFactory.FETCH_NATIVE_CONTACTS, null, null);
    assertTrue(processor instanceof FetchNativeContacts);
    processor = factory.create(ProcessorFactory.UPDATE_NATIVE_CONTACTS, null, null);
    assertTrue(processor instanceof UpdateNativeContacts);
    processor = factory.create(ProcessorFactory.UPLOAD_SERVER_CONTACTS, null, null);
    assertTrue(processor instanceof UploadServerContacts);
}
Also used : UpdateNativeContacts(com.vodafone360.people.engine.contactsync.UpdateNativeContacts) FetchNativeContacts(com.vodafone360.people.engine.contactsync.FetchNativeContacts) DefaultProcessorFactory(com.vodafone360.people.engine.contactsync.DefaultProcessorFactory) BaseSyncProcessor(com.vodafone360.people.engine.contactsync.BaseSyncProcessor) UploadServerContacts(com.vodafone360.people.engine.contactsync.UploadServerContacts) DownloadServerContacts(com.vodafone360.people.engine.contactsync.DownloadServerContacts) Suppress(android.test.suitebuilder.annotation.Suppress)

Aggregations

Suppress (android.test.suitebuilder.annotation.Suppress)1 BaseSyncProcessor (com.vodafone360.people.engine.contactsync.BaseSyncProcessor)1 DefaultProcessorFactory (com.vodafone360.people.engine.contactsync.DefaultProcessorFactory)1 DownloadServerContacts (com.vodafone360.people.engine.contactsync.DownloadServerContacts)1 FetchNativeContacts (com.vodafone360.people.engine.contactsync.FetchNativeContacts)1 UpdateNativeContacts (com.vodafone360.people.engine.contactsync.UpdateNativeContacts)1 UploadServerContacts (com.vodafone360.people.engine.contactsync.UploadServerContacts)1