Created
September 26, 2018 17:36
-
-
Save jeetprksh/7304fb4ad03c0b0b32fc6c626d19a2bc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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