Skip to content

newlight77/kata-bank-account-atdd-spring

Repository files navigation

Kata-Bank-Account-ATDD

Build Status Maintainability codecov BetterCodeHub compliance

Kata Statement

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

Requirements

These are requirements for kata.

Initial requirements

  • Deposit (negative not permitted)
  • Withdrawal (negative not permitted)
  • GetBalance
  • Account statement (date, quantity, balance)
  • Statement printing

Extra requirements if you feel with force :)

  • Deposit and Withdrawal (EUR and USD)

My Approach

Technical stack

I'm using Springboot, Java and Cucumber.

From the original statement, I decided to add account creation feature.

Story Mapping

Let's translate the features above into user stories :

  • US1 : Create an account (not allow non-resident of France)
  • US2 : Deposit (negative not permitted)
  • US3 : Withdrawal (negative not permitted)
  • US4 : GetBalance
  • US5 : Account statement (date, quantity, balance)
  • US6 : Statement printing

Run it

./mvnw clean test

Releases

No releases published

Packages

No packages published