@Test public void testCreateWriteSearchDataStore() throws Exception { SearchDataStore searchDataStore = searchDataStoreFactory.createWriteSearchDataStore(); assertThat( searchDataStore, is( notNullValue() ) ); }
public SearchDataStore createWriteSearchDataStore() { Log.d( TAG, "createWriteSearchDataStore : enter" ); SQLiteDatabase db = mOpenHelper.getWritableDatabase(); SearchDataStore searchDataStore = new DbSearchDataStore( db ); Log.d( TAG, "createWriteSearchDataStore : exit" ); return searchDataStore; }
SearchDataStoreFactory { public SearchDataStore createWriteSearchDataStore() { Log.d( TAG, "createWriteSearchDataStore : enter" ); SQLiteDatabase db = mOpenHelper.getWritableDatabase(); SearchDataStore searchDataStore = new DbSearchDataStore( db ); Log.d( TAG, "createWriteSearchDataStore : exit" ); return searchDataStore; } }
SearchDataStoreFactory { public SearchDataStore createWriteSearchDataStore() { Log.d( TAG, "createWriteSearchDataStore : enter" ); SQLiteDatabase db = mOpenHelper.getWritableDatabase(); SearchDataStore searchDataStore = new DbSearchDataStore( db ); Log.d( TAG, "createWriteSearchDataStore : exit" ); return searchDataStore; } @Inject  SearchDataStoreFactory( Context context ); }
SearchDataStoreFactory { public SearchDataStore createWriteSearchDataStore() { Log.d( TAG, "createWriteSearchDataStore : enter" ); SQLiteDatabase db = mOpenHelper.getWritableDatabase(); SearchDataStore searchDataStore = new DbSearchDataStore( db ); Log.d( TAG, "createWriteSearchDataStore : exit" ); return searchDataStore; } @Inject  SearchDataStoreFactory( Context context ); SearchDataStore createReadSearchDataStore(); SearchDataStore createWriteSearchDataStore(); }
SearchDataStoreFactory { public SearchDataStore createWriteSearchDataStore() { Log.d( TAG, "createWriteSearchDataStore : enter" ); SQLiteDatabase db = mOpenHelper.getWritableDatabase(); SearchDataStore searchDataStore = new DbSearchDataStore( db ); Log.d( TAG, "createWriteSearchDataStore : exit" ); return searchDataStore; } @Inject  SearchDataStoreFactory( Context context ); SearchDataStore createReadSearchDataStore(); SearchDataStore createWriteSearchDataStore();  }