Skip to content

tinello/kata-tdd-ddd-java_virtual-wallet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Standard project with DDD patterns covered with Unit Tests

Design the Virtual Wallet using Aggregate Roots, Entities and Value Objects and cover the uses cases with Unit Tests. At the Clean Architecture Manga you could learn the DDD patterns and TDD at TheThreeRulesOfTdd.

👷 Use cases

This project was designed do cover the following use cases and requirements:

  1. A Customer could register a new Checking Account using its personal details.
  2. Allow a customer to deposit funds into an existing account.
  3. Allow the customer to withdraw funds from an existing account.
  4. Allow the customer to close a Checking Account only if the balance is zero.
  5. Do not allow the Customer to Withdraw more than the existing funds.
  6. Allow to get the account details.
  7. Allow to get the customer details.

The Domain Model

Tech stuff

  • JDK 8 or later
  • JUnit
  • Cucumber

Kata

Build a Rich Domain from tests using DDD Building Blocks like Aggregate Roots, Entities and Value Objects with the help of kata-initial folder files.

The expected Model has

  • Customer and Checking Account Aggregate Roots.
  • Credit and Debit Entities.
  • Amount, Name and SSN Value Objects.

* Create a Test Class for the Register use case.

* Then begin with the domain implementation.

* Refactor the code.

* Add more tests and continue with the implementation.

* Refactor and Repeat.

About

Kata de Virtual Wallet con TDD y DDD en JAVA

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages