@Test public void onCreate() { mProvider.onCreate(mDatabase); verify(mDatabase).execSQL("CREATE TABLE foos (bar TEXT PRIMARY KEY, late FLOAT NOT NULL UNIQUE, time REAL);"); }
@Override public void onCreate(SQLiteDatabase db) { createTables(db); }
SimpleSQLHelper extends SQLiteOpenHelper { @Override public void onCreate(SQLiteDatabase db) { createTables(db); } }
SimpleSQLHelper extends SQLiteOpenHelper { @Override public void onCreate(SQLiteDatabase db) { createTables(db); } SimpleSQLHelper(Context context, String fileName, int schemaVersion); }
SimpleSQLHelper extends SQLiteOpenHelper { @Override public void onCreate(SQLiteDatabase db) { createTables(db); } SimpleSQLHelper(Context context, String fileName, int schemaVersion); void setTableClass(Class<?> tableClass); @Override void onCreate(SQLiteDatabase db); @Override void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion); @Override void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion); }
SimpleSQLHelper extends SQLiteOpenHelper { @Override public void onCreate(SQLiteDatabase db) { createTables(db); } SimpleSQLHelper(Context context, String fileName, int schemaVersion); void setTableClass(Class<?> tableClass); @Override void onCreate(SQLiteDatabase db); @Override void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion); @Override void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion);  }