We finish writing our test.
authorGustavo Martin Morcuende <gu.martinm@gmail.com>
Sun, 4 Dec 2016 15:03:32 +0000 (16:03 +0100)
committerGustavo Martin Morcuende <gu.martinm@gmail.com>
Sun, 4 Dec 2016 22:29:25 +0000 (23:29 +0100)
TDD/sandromancuso/bank/src/test/java/org/craftedsw/feature/PrintStatementFeature.java

index 85ae074..e2c6f1c 100644 (file)
@@ -14,6 +14,11 @@ public class PrintStatementFeature {
        
        @Test public void
        print_statement_containing_all_transactions() {
+               account.deposti(1000);
+               // No negative value, instead we use the verb withdraw.
+               // Semantics are very important in the code!!!
+               account.withdraw(100);
+               account.deposit(500);
                
                account.printStatement();