@Test public void onUpgradeEmpty() { mProvider.onUpgrade(mDatabase, 2, 3); verifyNoMoreInteractions(mDatabase); }
@Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { upgradeTables(db, oldVersion, newVersion); }
SimpleSQLHelper extends SQLiteOpenHelper { @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { upgradeTables(db, oldVersion, newVersion); } }
SimpleSQLHelper extends SQLiteOpenHelper { @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { upgradeTables(db, oldVersion, newVersion); } SimpleSQLHelper(Context context, String fileName, int schemaVersion); }
SimpleSQLHelper extends SQLiteOpenHelper { @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { upgradeTables(db, oldVersion, newVersion); } 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 onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { upgradeTables(db, oldVersion, newVersion); } 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);  }