Package ejava.examples.txhotel.jpa
Class HotelDAOTestBase
- java.lang.Object
-
- ejava.examples.txhotel.jpa.HotelDAOTestBase
-
- Direct Known Subclasses:
HotelRegistrationTest,HotelReservationSessionTest
public abstract class HotelDAOTestBase extends Object
This class contains the common setUp and tearDown logic for all DAO tests for the Hotel application.
-
-
Field Summary
Fields Modifier and Type Field Description protected EntityManageremprotected org.slf4j.Loggerlogprivate static StringPERSISTENCE_UNITprotected ejava.examples.txhotel.dao.ReservationDAOreservationDAOprotected ejava.examples.txhotel.bl.HotelReservationistreservationistprotected ejava.examples.txhotel.bl.HotelReservationSessionreservationSession
-
Constructor Summary
Constructors Constructor Description HotelDAOTestBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcleanup()protected voidpopulate()voidsetUp()voidtearDown()
-
-
-
Field Detail
-
log
protected org.slf4j.Logger log
-
PERSISTENCE_UNIT
private static final String PERSISTENCE_UNIT
- See Also:
- Constant Field Values
-
reservationist
protected ejava.examples.txhotel.bl.HotelReservationist reservationist
-
reservationSession
protected ejava.examples.txhotel.bl.HotelReservationSession reservationSession
-
reservationDAO
protected ejava.examples.txhotel.dao.ReservationDAO reservationDAO
-
em
protected EntityManager em
-
-