Skip to content

Instantly share code, notes, and snippets.

@jeetprksh
Created September 26, 2018 17:36
Show Gist options
  • Save jeetprksh/7304fb4ad03c0b0b32fc6c626d19a2bc to your computer and use it in GitHub Desktop.
Save jeetprksh/7304fb4ad03c0b0b32fc6c626d19a2bc to your computer and use it in GitHub Desktop.
public class Tests {
private static final Logger logger = Logger.getLogger(Tests.class.getName());
private UserDAO userDao;
public Tests() {
this.userDao = new UserDaoImpl();
}
@Test
public void testInsertUser() {
User user = new User("Robb", "Stark", 17);
Integer id = (Integer) userDao.createUser(user);
assertTrue(id instanceof Integer);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment