use of com.orm.androrm.DatabaseAdapter in project androrm by androrm.
the class ManyToManyFieldTest method setUp.
@Override
public void setUp() {
List<Class<? extends Model>> models = new ArrayList<Class<? extends Model>>();
models.add(Product.class);
models.add(Supplier.class);
models.add(Branch.class);
models.add(Brand.class);
DatabaseAdapter adapter = DatabaseAdapter.getInstance(getContext());
adapter.setModels(models);
}
use of com.orm.androrm.DatabaseAdapter in project androrm by androrm.
the class ModelTest method testMigrationsRun.
public void testMigrationsRun() {
List<Class<? extends Model>> models = new ArrayList<Class<? extends Model>>();
models.add(ModelWithMigration.class);
DatabaseAdapter adapter = DatabaseAdapter.getInstance(getContext());
adapter.setModels(models);
assertTrue(mHelper.hasField(ModelWithMigration.class, "mTestField"));
}
use of com.orm.androrm.DatabaseAdapter in project androrm by androrm.
the class RenameModelMigrationTest method setUp.
@Override
public void setUp() {
List<Class<? extends Model>> models = new ArrayList<Class<? extends Model>>();
models.add(EmptyModel.class);
models.add(ModelWithRelation.class);
models.add(NewEmptyModel.class);
models.add(NewModelWithRelation.class);
DatabaseAdapter adapter = DatabaseAdapter.getInstance(getContext());
adapter.setModels(models);
super.setUp();
}
Aggregations