@Test public void onDrop() { helper.onDrop(database); verifyDropStatement(); }
public void onDrop(SQLiteDatabase db) { for (DatabaseTable table : tables) { db.execSQL("drop table if exists " + table.getTableName()); } }
DatabaseSQLiteHelper extends SQLiteOpenHelper { public void onDrop(SQLiteDatabase db) { for (DatabaseTable table : tables) { db.execSQL("drop table if exists " + table.getTableName()); } } }
DatabaseSQLiteHelper extends SQLiteOpenHelper { public void onDrop(SQLiteDatabase db) { for (DatabaseTable table : tables) { db.execSQL("drop table if exists " + table.getTableName()); } } DatabaseSQLiteHelper(Context context); }
DatabaseSQLiteHelper extends SQLiteOpenHelper { public void onDrop(SQLiteDatabase db) { for (DatabaseTable table : tables) { db.execSQL("drop table if exists " + table.getTableName()); } } DatabaseSQLiteHelper(Context context); @Override void onCreate(SQLiteDatabase db); @Override void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion); void onDrop(SQLiteDatabase db); }
DatabaseSQLiteHelper extends SQLiteOpenHelper { public void onDrop(SQLiteDatabase db) { for (DatabaseTable table : tables) { db.execSQL("drop table if exists " + table.getTableName()); } } DatabaseSQLiteHelper(Context context); @Override void onCreate(SQLiteDatabase db); @Override void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion); void onDrop(SQLiteDatabase db);  }