Package edu.pdx.cs.joy.phonebill
Class PhoneBillDAOTest
java.lang.Object
edu.pdx.cs.joy.phonebill.PhoneBillDAOTest
A simple example unit test that demonstrates persisting a PhoneBill
to an H2 in-memory database using JDBC.
This is a starting point for students to understand how to use
Data Access Objects (DAOs) to persist domain objects to a database.
-
Constructor Details
-
PhoneBillDAOTest
public PhoneBillDAOTest()
-
-
Method Details
-
setUp
- Throws:
SQLException
-
tearDown
- Throws:
SQLException
-
canPersistAndFetchPhoneBillByCustomerName
- Throws:
SQLException
-
returnsNullWhenPhoneBillNotFound
- Throws:
SQLException
-