Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Display ipad = mock(iPad.Class);
- BankAccount account = new BankAccount(ipad);
- double balance = account.getBalance(); // will likely be 0 unless there is some default value forced on it
- account.withdraw(13.00);
- verify(ipad).displayLine(String.ValueOf(balance - 13.00));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement