Search in sources :

Example 1 with Dispatcher

use of org.wordpress.android.fluxc.Dispatcher in project WordPress-Android by wordpress-mobile.

the class FluxCMigrationTest method setUp.

@Override
protected void setUp() throws Exception {
    // Needed for Mockito
    System.setProperty("dexmaker.dexcache", getInstrumentation().getTargetContext().getCacheDir().getPath());
    mRenamingTargetAppContext = new RenamingDelegatingContext(getInstrumentation().getTargetContext().getApplicationContext(), "test_");
    mTestContext = getInstrumentation().getContext();
    mSiteStore = new SiteStore(new Dispatcher(), Mockito.mock(SiteRestClient.class), Mockito.mock(SiteXMLRPCClient.class));
    WellSqlConfig config = new TestWellSqlConfig(mRenamingTargetAppContext);
    WellSql.init(config);
    config.reset();
    super.setUp();
}
Also used : RenamingDelegatingContext(android.test.RenamingDelegatingContext) SiteStore(org.wordpress.android.fluxc.store.SiteStore) TestWellSqlConfig(org.wordpress.android.TestWellSqlConfig) Dispatcher(org.wordpress.android.fluxc.Dispatcher) TestWellSqlConfig(org.wordpress.android.TestWellSqlConfig) WellSqlConfig(org.wordpress.android.fluxc.persistence.WellSqlConfig)

Aggregations

RenamingDelegatingContext (android.test.RenamingDelegatingContext)1 TestWellSqlConfig (org.wordpress.android.TestWellSqlConfig)1 Dispatcher (org.wordpress.android.fluxc.Dispatcher)1 WellSqlConfig (org.wordpress.android.fluxc.persistence.WellSqlConfig)1 SiteStore (org.wordpress.android.fluxc.store.SiteStore)1