Package ejava.examples.txhotel.jpa
Class DAOTestBase
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- ejava.examples.txhotel.jpa.DAOTestBase
-
- All Implemented Interfaces:
junit.framework.Test
- Direct Known Subclasses:
HotelRegistrationDAOTest
,OptimisticLockingTest
public abstract class DAOTestBase extends junit.framework.TestCase
-
-
Field Summary
Fields Modifier and Type Field Description protected EntityManager
em
protected org.slf4j.Logger
log
private static String
PERSISTENCE_UNIT
protected ejava.examples.txhotel.dao.ReservationDAO
reservationDAO
-
Constructor Summary
Constructors Constructor Description DAOTestBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
cleanup()
protected void
populate()
protected void
setUp()
protected void
tearDown()
-
Methods inherited from class junit.framework.TestCase
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
-
-
-
-
Field Detail
-
log
protected org.slf4j.Logger log
-
PERSISTENCE_UNIT
private static final String PERSISTENCE_UNIT
- See Also:
- Constant Field Values
-
reservationDAO
protected ejava.examples.txhotel.dao.ReservationDAO reservationDAO
-
em
protected EntityManager em
-
-
Method Detail
-
setUp
protected void setUp() throws Exception
- Overrides:
setUp
in classjunit.framework.TestCase
- Throws:
Exception
-
tearDown
protected void tearDown() throws Exception
- Overrides:
tearDown
in classjunit.framework.TestCase
- Throws:
Exception
-
cleanup
protected void cleanup()
-
populate
protected void populate()
-
-