Ejemplo n.º 1
0
 @Override
 protected Role addParents(Role role) {
   if (userId != null) {
     role.setUser(new User());
     role.getUser().setId(userId.toString());
   }
   return role;
 }
 @Override
 protected void verifyModel(Role model, int index) {
   super.verifyModel(model, index);
   assertFalse(model.isSetUser());
 }
 private Role getModel() {
   Role role = new Role();
   role.setName(NAMES[0]);
   return role;
 }
 @Override
 protected void verifyModel(Role model, int index) {
   assertEquals(GUIDS[index].toString(), model.getId());
 }