Package edu.pdx.cs.joy.di
Class BookDatabaseTest
java.lang.Object
edu.pdx.cs.joy.di.BookDatabaseTest
Tests the
BookDatabase cass-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUp()voidtearDown()voidTests that a book can be added to a book database and is persistedvoidTests that a multiple copies of multiple books can be added to a book database and is persistedvoidTests that a multiple copies of the same book can be added to a book database and is persisted
-
Constructor Details
-
BookDatabaseTest
public BookDatabaseTest()
-
-
Method Details
-
setUp
-
tearDown
-
testAddBook
Tests that a book can be added to a book database and is persisted- Throws:
jakarta.xml.bind.JAXBExceptionIOException
-
testAddSameBook
Tests that a multiple copies of the same book can be added to a book database and is persisted- Throws:
jakarta.xml.bind.JAXBExceptionIOException
-
testAddMultipleBooks
Tests that a multiple copies of multiple books can be added to a book database and is persisted- Throws:
jakarta.xml.bind.JAXBExceptionIOException
-