/test-driven-development

Primary LanguageJavaApache License 2.0Apache-2.0

Test Driven Development By Example

Examples provided have been inspired by Kent Beck's examples in his book Test-Driven Development By Example

In this repository, I look at using Beck's classic TDD Money Example - updated to Java 11 and JUnit 5.

Setup

Requirements

  • Should use Java 11 or higher. Previous versions of Java are un-tested.
  • Use Maven 3.5.2 or higher

Technical Requirements For Report

  • Need to be able to add amounts in two different currencies and convert result given a set of exchange rates
  • Need to be able to multiply an amount by a number (number of shares) and receive an amount