use of com.orm.androrm.field.LocationField in project androrm by androrm.
the class LocationFieldTest method testDefinition.
public void testDefinition() {
LocationField field = new LocationField();
assertEquals("fooLat numeric, fooLng numeric", field.getDefinition("foo"));
}
use of com.orm.androrm.field.LocationField in project androrm by androrm.
the class DataFieldMigrationTest method testLocationFieldAdd.
public void testLocationFieldAdd() {
Migrator<EmptyModel> migrator = new Migrator<EmptyModel>(EmptyModel.class);
assertFalse(mHelper.hasField(EmptyModel.class, "mLocationLat"));
assertFalse(mHelper.hasField(EmptyModel.class, "mLocationLng"));
migrator.addField("mLocation", new LocationField());
migrator.migrate(getContext());
assertTrue(mHelper.hasField(EmptyModel.class, "mLocationLat"));
assertTrue(mHelper.hasField(EmptyModel.class, "mLocationLng"));
}
Aggregations