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 EntityManager
em
protected org.slf4j.Logger
log
private static String
PERSISTENCE_UNIT
protected ejava.examples.txhotel.dao.ReservationDAO
reservationDAO
protected ejava.examples.txhotel.bl.HotelReservationist
reservationist
protected ejava.examples.txhotel.bl.HotelReservationSession
reservationSession
-
Constructor Summary
Constructors Constructor Description HotelDAOTestBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
cleanup()
protected void
populate()
void
setUp()
void
tearDown()
-
-
-
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
-
-