import junit.framework.TestCase;

/**
 * A JUnit test case class.
 * Every method starting with the word "test" will be called when running
 * the test with JUnit.
 */
public class BookTester extends TestCase {
  
  /**
   * test the first constructor and title getter method
   */
  public void testConstructor1AndTitleGetter() {
    Book b = new Book("Lord of the Rings", 600, "Tolkien", 10.0);
    assertEquals("Lord of the Rings", b.getTitle());
  }
  
  /**
   * test the first constructor and price getter method
   */
  public void testConstructor1AndPriceGetter() {
    Book b = new Book("Lord of the Rings", 600, "Tolkien", 10.0);
    assertEquals(10.0, b.getPrice(), 0.0);
  }
  
  // test the rest of the methods here!
  
}

