Class BookDatabaseTest

java.lang.Object
edu.pdx.cs.joy.di.BookDatabaseTest

public class BookDatabaseTest extends Object
Tests the BookDatabase cass
  • Constructor Details

  • Method Details

    • setUp

      @BeforeEach public void setUp()
    • tearDown

      @AfterEach public void tearDown()
    • testAddBook

      @Test public void testAddBook() throws jakarta.xml.bind.JAXBException, IOException
      Tests that a book can be added to a book database and is persisted
      Throws:
      jakarta.xml.bind.JAXBException
      IOException
    • testAddSameBook

      @Test public void testAddSameBook() throws jakarta.xml.bind.JAXBException, IOException
      Tests that a multiple copies of the same book can be added to a book database and is persisted
      Throws:
      jakarta.xml.bind.JAXBException
      IOException
    • testAddMultipleBooks

      @Test public void testAddMultipleBooks() throws jakarta.xml.bind.JAXBException, IOException
      Tests that a multiple copies of multiple books can be added to a book database and is persisted
      Throws:
      jakarta.xml.bind.JAXBException
      IOException