Example #1
0
 @Test
 public void testFind() throws Exception {
   User foundUser = h2User.find(user.getId());
   assertEquals(email, foundUser.getEmail());
   assertEquals(password, foundUser.getPassword());
   assertEquals(type, foundUser.getType());
 }
Example #2
0
 @Test
 public void testCreate() throws Exception {
   assertEquals(email, user.getEmail());
   assertEquals(password, user.getPassword());
   assertEquals(type, user.getType());
 }