Exemple #1
0
 @Test
 public void testUpdate() throws SQLException {
   UserObject user = new UserObject("*****@*****.**", "12de", "name", 3);
   user.setId(99);
   // here is shouldnt work since the user id doesnt exist
   assertTrue(UserData.updateUser(user) == -1);
 }