protected void copyFrom(GeoServerUserGroupService service1, GeoServerUserGroupService service2) throws Exception { GeoServerUserGroupStore store1 = createStore(service1); GeoServerUserGroupStore store2 = createStore(service2); store1.clear(); checkEmpty(store1); insertValues(store1); Util.copyFrom(store1, store2); store1.clear(); checkEmpty(store1); checkValuesInserted(store2); store2.clear(); checkEmpty(store2); }
@Test public void testCopyFrom() throws Exception { GeoServerRoleService service1 = createRoleService("copyFrom"); GeoServerRoleService service2 = createRoleService("copyTo"); GeoServerRoleStore store1 = createStore(service1); GeoServerRoleStore store2 = createStore(service2); store1.clear(); checkEmpty(store1); insertValues(store1); Util.copyFrom(store1, store2); store1.clear(); checkEmpty(store1); checkValuesInserted(store2); }
@Test public void testCopyFrom() throws Exception { GeoServerUserGroupService service1 = createUserGroupService("copyFrom"); GeoServerUserGroupService service2 = createUserGroupService("copyTo"); GeoServerUserGroupStore store1 = createStore(service1); GeoServerUserGroupStore store2 = createStore(service2); store1.clear(); checkEmpty(store1); insertValues(store1); Util.copyFrom(store1, store2); store1.clear(); checkEmpty(store1); checkValuesInserted(store2); }