Assumptions:
- Apply highest discount possible in case the customer is eligible for multiple discounts.
- The flat 5$ discount on total is calculated only after deduction of percentage discounts.
Prerequisites:
JDK 1.6 and above, Maven 2.2.1 upwards.
Please ensure that JAVA_HOME is set to the JDK home directory in order to run Maven
Run the unit tests:
- Open a terminal
- Go to the project root directory
- Run the following command:
mvn test
Run the application with dummy data:
- Open a terminal
- Go to the project root directory
- Run the following command:
mvn install exec:java