use of org.onebusaway.users.model.properties.UserPropertiesV2 in project onebusaway-application-modules by camsys.
the class UserPropertiesMigrationImplTest method testNeedsMigration.
@Test
public void testNeedsMigration() {
UserPropertiesV1 v1 = new UserPropertiesV1();
assertFalse(_service.needsMigration(v1, UserPropertiesV1.class));
assertTrue(_service.needsMigration(v1, UserPropertiesV2.class));
UserPropertiesV2 v2 = new UserPropertiesV2();
assertTrue(_service.needsMigration(v2, UserPropertiesV1.class));
assertFalse(_service.needsMigration(v2, UserPropertiesV2.class));
}
Aggregations