Bank Account kata for practice TDD implemented by Jorge Sánchez (Xurxodev)
Think of your personal bank account experience
When in doubt, go for the simplest solution
These are requirements for kata.
- Deposit (negative not permitted)
- Withdrawal (negative not permitted)
- GetBalance
- Account statement (date, quantity, balance)
- Statement printing
- Deposit and Withdrawal (EUR and USD)
I'm using Springboot with Java.
Let's translate the features above into user stories :
- US1 : Deposit (negative not permitted)
As a bank client, I want to make a deposit in my account.
- US2 : Withdrawal (negative not permitted)
As a bank client, I want to withdraw money from my account.
- US3 : GetBalance
As a bank client, I want to know the balkance in my account.
- US4 : Account statement (date, quantity, balance)
As a bank client, I want to see my account statement.
- US5 : Statement printing
As a bank client, I want to print my account statement.
./mvnw clean test