use of com.orm.androrm.DatabaseAdapter in project androrm by androrm.
the class FilterTest method tearDown.
@Override
public void tearDown() {
DatabaseAdapter adapter = DatabaseAdapter.getInstance(getContext());
adapter.drop();
}
use of com.orm.androrm.DatabaseAdapter in project androrm by androrm.
the class ModelTest method tearDown.
@Override
public void tearDown() {
DatabaseAdapter adapter = DatabaseAdapter.getInstance(getContext());
adapter.drop();
}
use of com.orm.androrm.DatabaseAdapter in project androrm by androrm.
the class ModelTest method setUp.
@Override
public void setUp() {
List<Class<? extends Model>> models = new ArrayList<Class<? extends Model>>();
models.add(BlankModel.class);
models.add(BlankModelNoAutoincrement.class);
DatabaseAdapter adapter = DatabaseAdapter.getInstance(getContext());
adapter.setModels(models);
}
use of com.orm.androrm.DatabaseAdapter in project androrm by androrm.
the class FieldCacheTest method tearDown.
public void tearDown() {
DatabaseAdapter adapter = DatabaseAdapter.getInstance(getContext());
adapter.drop();
ModelCache.reset();
}
use of com.orm.androrm.DatabaseAdapter in project androrm by androrm.
the class FieldCacheTest method testHasField.
public void testHasField() {
assertFalse(ModelCache.modelHasField(BlankModel.class, "mName"));
List<Class<? extends Model>> models = new ArrayList<Class<? extends Model>>();
models.add(BlankModel.class);
DatabaseAdapter adapter = DatabaseAdapter.getInstance(getContext());
adapter.setModels(models);
assertTrue(ModelCache.modelHasField(BlankModel.class, "mName"));
}
Aggregations