Simple billing exercise
Java
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
README.md
pom.xml

README.md

BillingSample

Assumptions:

  1. Apply highest discount possible in case the customer is eligible for multiple discounts.
  2. 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:

  1. Open a terminal
  2. Go to the project root directory
  3. Run the following command:
    mvn test

Run the application with dummy data:

  1. Open a terminal
  2. Go to the project root directory
  3. Run the following command:
    mvn install exec:java