57585960616263
role = user.getRole(); enable = user.getEnable(); } public UserModel toModel() { return new UserModel(this); }
7980818283848586878889
public void testUpdate() { User user = new User("Vasa", "1234"); user = userDao.add( user ); UserModel change = new UserModel( user ); change.setPhone("3434995"); uService.update( change ); assertEquals( userDao.get(1).getPhone(), "3434995" ); }