Java 8+
The app parses an input file so that to get a list of ItemPackages.
- Add logs;
- In order to check the uniqueness of items within an ItemPackage, consider a following addition: a HashMap (keys: itemNumbers, values: counter);
- Consider changing APIException to unchecked one so that to use in Java Stream API without a workaround.
- The project should be built by means of Gradle. For that reason, run
gradlew clean build
. Subsequently, to start the application make use ofgradlew run --args='src/main/resources/input.txt'
wheresrc/main/resources/input.txt
is a path to file. - Most part of the code is covered with unit tests based on Junit5.