@Test public void addMigration() { Sprinkles s = Sprinkles.init(Robolectric.application); assertEquals(s.mMigrations.size(), 0); Migration m = new Migration(){ @Override protected void doMigration(SQLiteDatabase db) { } }; s.addMigration(m); assertEquals(s.mMigrations.get(0), m); }
public void addMigration(Migration migration) { mMigrations.add(migration); }
Sprinkles { public void addMigration(Migration migration) { mMigrations.add(migration); } }
Sprinkles { public void addMigration(Migration migration) { mMigrations.add(migration); } private  Sprinkles(); }
Sprinkles { public void addMigration(Migration migration) { mMigrations.add(migration); } private  Sprinkles(); static synchronized Sprinkles init(Context context); static synchronized Sprinkles init(Context context, String databaseName, int initialDatabaseVersion); @Deprecated static synchronized Sprinkles getInstance(Context context); static synchronized void dropInstances(); void addMigration(Migration migration); void registerType(Class<T> clazz, TypeSerializer<T> serializer); }
Sprinkles { public void addMigration(Migration migration) { mMigrations.add(migration); } private  Sprinkles(); static synchronized Sprinkles init(Context context); static synchronized Sprinkles init(Context context, String databaseName, int initialDatabaseVersion); @Deprecated static synchronized Sprinkles getInstance(Context context); static synchronized void dropInstances(); void addMigration(Migration migration); void registerType(Class<T> clazz, TypeSerializer<T> serializer);  }