Advertisement
Kimes

Untitled

Mar 25th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.31 KB | None | 0 0
  1. @Test
  2.     public void shouldReturnBook_increaseNumberOfCopies() {
  3.         Book bookToTest = new Book("TestTitle", "2017", "Smith", 1);
  4.         int expectedNumberOfCopies = 1;
  5.        
  6.         bookToTest.lendBook("Jones");
  7.         bookToTest.returnBook("Jones");
  8.        
  9.         assertEquals(expectedNumberOfCopies, bookToTest.getNumberOfCopies());
  10.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement