Package ejava.examples.txhotel.jpa
Class HotelRegistrationDAOTest
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- ejava.examples.txhotel.jpa.DAOTestBase
-
- ejava.examples.txhotel.jpa.HotelRegistrationDAOTest
-
- All Implemented Interfaces:
junit.framework.Test
public class HotelRegistrationDAOTest extends DAOTestBase
This class tests the ReservationDAO. The code contained here will be similar to the calls made by the Hotel Reservation business logic.
-
-
Field Summary
-
Fields inherited from class ejava.examples.txhotel.jpa.DAOTestBase
em, log, reservationDAO
-
-
Constructor Summary
Constructors Constructor Description HotelRegistrationDAOTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
testCreateRegistration()
void
testGetReservation()
void
testMergePeople()
This will test the ability to create a new Reservation for an existing person.void
testQueryByConfirmation()
void
testQueryByName()
void
testRemoveReservation()
-
Methods inherited from class ejava.examples.txhotel.jpa.DAOTestBase
cleanup, populate, setUp, 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
-
-
-
-
Method Detail
-
testCreateRegistration
public void testCreateRegistration()
-
testMergePeople
public void testMergePeople()
This will test the ability to create a new Reservation for an existing person.
-
testGetReservation
public void testGetReservation()
-
testRemoveReservation
public void testRemoveReservation()
-
testQueryByName
public void testQueryByName()
-
testQueryByConfirmation
public void testQueryByConfirmation()
-
-