From: Gustavo Martin Morcuende Date: Sun, 4 Dec 2016 15:03:32 +0000 (+0100) Subject: We finish writing our test. X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=0ef294ed392f3c9253ea2eaf11a5be5e554fd59b;p=JavaForFun We finish writing our test. --- 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();