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();
}
Aggregations