Search in sources :

Example 21 with UserPropertiesV2

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));
}
Also used : UserPropertiesV2(org.onebusaway.users.model.properties.UserPropertiesV2) UserPropertiesV1(org.onebusaway.users.model.UserPropertiesV1) Test(org.junit.Test)

Aggregations

UserPropertiesV2 (org.onebusaway.users.model.properties.UserPropertiesV2)21 Bookmark (org.onebusaway.users.model.properties.Bookmark)9 Test (org.junit.Test)8 UserPropertiesV1 (org.onebusaway.users.model.UserPropertiesV1)4 RouteFilter (org.onebusaway.users.model.properties.RouteFilter)4 Date (java.util.Date)3 User (org.onebusaway.users.model.User)3 UserPropertiesV3 (org.onebusaway.users.model.properties.UserPropertiesV3)3 UserIndex (org.onebusaway.users.model.UserIndex)2 UserIndexKey (org.onebusaway.users.model.UserIndexKey)2 UserProperties (org.onebusaway.users.model.UserProperties)2 Calendar (java.util.Calendar)1 BookmarkBean (org.onebusaway.users.client.model.BookmarkBean)1 UserRole (org.onebusaway.users.model.UserRole)1 UserPropertiesV4 (org.onebusaway.users.model.properties.UserPropertiesV4)1