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