Permalink
Browse files

Inner loop - Red: Test store negative amount transaction

  • Loading branch information...
CarlosMChica committed May 2, 2016
1 parent 1f5cdab commit 13c1b413443d1d18d66eca53955ba3703808264b
@@ -29,6 +29,14 @@
verifyStore(aTransactionWith(anAmount()));
}
@Test public void store_a_withdraw_transaction() {
BankAccount account = givenAccountWithMockedClock();
account.withdraw(anAmount());
verifyStore(aTransactionWith(-anAmount()));
}
private BankAccount givenAccountWithMockedClock() {
when(clock.today()).thenReturn(date());
return givenAccount();

0 comments on commit 13c1b41

Please sign in to comment.