示例#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());
 }