예제 #1
0
 @Test
 public void testCallNumberIsEmpty() {
   try {
     Book callNumberIsEmpty = new Book("Bob Jones", "Subject", "", 4);
     callNumberIsEmpty.getCallNumber();
     fail("Illegal Argument Exception");
   } catch (IllegalArgumentException e) {
     assertTrue(true);
   }
 }
예제 #2
0
 @Test
 public void testGetCallNumber() {
   assertEquals("callNumber", BookTesting.getCallNumber());
 }