From f2ffcacb4e644546bf500cda92c3fcf67faa694e Mon Sep 17 00:00:00 2001 From: Gustavo Martin Morcuende Date: Sun, 4 Dec 2016 16:03:32 +0100 Subject: [PATCH] We finish writing our test. --- .../src/test/java/org/craftedsw/feature/PrintStatementFeature.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/TDD/sandromancuso/bank/src/test/java/org/craftedsw/feature/PrintStatementFeature.java b/TDD/sandromancuso/bank/src/test/java/org/craftedsw/feature/PrintStatementFeature.java index 85ae074..e2c6f1c 100644 --- a/TDD/sandromancuso/bank/src/test/java/org/craftedsw/feature/PrintStatementFeature.java +++ b/TDD/sandromancuso/bank/src/test/java/org/craftedsw/feature/PrintStatementFeature.java @@ -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(); -- 2.1.4