@Test public void onCreate() { helper.onCreate(database); verifyCreateStatement(); }
@Override public void onCreate(SQLiteDatabase db) { for (DatabaseTable table : tables) { db.execSQL(table.getCreateStatement()); for (String index : table.getIndexStatements()) { db.execSQL(index); } } }
DatabaseSQLiteHelper extends SQLiteOpenHelper { @Override public void onCreate(SQLiteDatabase db) { for (DatabaseTable table : tables) { db.execSQL(table.getCreateStatement()); for (String index : table.getIndexStatements()) { db.execSQL(index); } } } }
DatabaseSQLiteHelper extends SQLiteOpenHelper { @Override public void onCreate(SQLiteDatabase db) { for (DatabaseTable table : tables) { db.execSQL(table.getCreateStatement()); for (String index : table.getIndexStatements()) { db.execSQL(index); } } } DatabaseSQLiteHelper(Context context); }
DatabaseSQLiteHelper extends SQLiteOpenHelper { @Override public void onCreate(SQLiteDatabase db) { for (DatabaseTable table : tables) { db.execSQL(table.getCreateStatement()); for (String index : table.getIndexStatements()) { db.execSQL(index); } } } DatabaseSQLiteHelper(Context context); @Override void onCreate(SQLiteDatabase db); @Override void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion); void onDrop(SQLiteDatabase db); }
DatabaseSQLiteHelper extends SQLiteOpenHelper { @Override public void onCreate(SQLiteDatabase db) { for (DatabaseTable table : tables) { db.execSQL(table.getCreateStatement()); for (String index : table.getIndexStatements()) { db.execSQL(index); } } } DatabaseSQLiteHelper(Context context); @Override void onCreate(SQLiteDatabase db); @Override void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion); void onDrop(SQLiteDatabase db);  }