A popular kata for for a supermarket checkout that calculates the total price of a number of items.
-
followed the Outside-In TDD approach, starting with basic scenario/ acceptance criteria. For more information see
PrintCheckoutTotalAmountFeature.java
-
Single Responsibility was aimed as much as possible.
TODO
- Offers were not applied in the checkout process.
APPLICATION SETUP
- To build and run the tests use the following command
./gradlew clean build
- To run the application use
java -jar build/libs/checkout-kata-1.0.jar
from the base project directory.