The detailed description can be found here: (http://codekata.com/kata/kata09-back-to-the-checkout/)
-
Clone the repo
-
In the project folder run mvn test to verify if two basic tests are still passing
-
To add/change an item modify the file itemsConfig.xml under src/main/java/resources/config. Each item has following structure:
<item>
<sku>B</sku>
<unitPrice>30</unitPrice>
<specialPrice>2 for 45</specialPrice>
</item>
- To calculate the total price of the purchase, execute Main class. To add a new item to your purchase, use:
co.scan(sku)
- Total price will be printed to the console after executing main class.