Decathlon-assessment is a simple console application that can be used for decathlon assessment
- Standard Java API (that comes with Java 1.8 JDK. Javax packages as part of JDK was used as well)
- JUnit for testing
- Maven > 3.0 for project build is needed
Note:
- Project was written by using Java SDK 1.8. Source was compiled without compatibility with older Java version.
Clone the project with the following command:
$ git clone https://github.com/viktornar/decathlon-assessment
Go to the project directory:
$ cd decathlon-assessment
and run:
mvn package
During compile and package process test will be executed. If everything will be ok IE or other browser should be invoked. In opened browser you will see nicely formatted xml.
To execute program run:
java -jar decathlon.jar --input input.txt --output output.xml
Note:
- In current application version cli argument parser is still experimental. So do not use spaces and special characters in file paths.
If you use IDEA or Eclipse just import project as maven project. In IDEA use mvn wrapper.