Class JPAPersonDAOTest


  • public class JPAPersonDAOTest
    extends JPADAOTestBase
    This test case provides an example of one might test the JPA DAO. It tests only a minor set of functionality. However, this can be used as a starting point for more detailed tests.
    • Field Detail

      • log

        private static org.slf4j.Logger log
      • dao

        ejava.projects.edmv.dao.PersonDAO dao
    • Constructor Detail

      • JPAPersonDAOTest

        public JPAPersonDAOTest()
    • Method Detail

      • testJPACreate

        public void testJPACreate()
                           throws Exception
        This method tests a single create into the database using the DAO. This tests some core functionality, but clearly more types of inserts should also be tested. For example, what happens when the same userId is added a second time.
        Throws:
        Exception