@Test public void callbacks() { TestMigration m = new TestMigration(); m.execute(null); assertTrue(m.onPreMigrateCalled); assertTrue(m.doMigrationCalled); assertTrue(m.onPostMigrateCalled); }
final void execute(SQLiteDatabase db) { onPreMigrate(); doMigration(db); onPostMigrate(); }
Migration { final void execute(SQLiteDatabase db) { onPreMigrate(); doMigration(db); onPostMigrate(); } }
Migration { final void execute(SQLiteDatabase db) { onPreMigrate(); doMigration(db); onPostMigrate(); }  }
Migration { final void execute(SQLiteDatabase db) { onPreMigrate(); doMigration(db); onPostMigrate(); }   }
Migration { final void execute(SQLiteDatabase db) { onPreMigrate(); doMigration(db); onPostMigrate(); }    }