146147148149150151152153154155156
// assign the new resource to an user SyncopeUser user = userDAO.find(1L); assertNotNull("user not found", user); user.addResource(actual); resourceDAO.flush(); // retrieve resource resource = resourceDAO.find(actual.getName());
152153154155156157158159160161162
197198199200201202203204205206207
198199200201202203204205206207208