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