Finds the combination of plans that offers all selected features at the lowest price.
Use mvn compile
for building.
- Use
mvn spring-boot:run
to run the application.
- Open web browser try url http://localhost:8080/swagger-ui.html
- Click on Down arrow
- Click on 'Try it out'
- Choose file
- Enter features
- See the result
Formatting should follow Google Java Format. It will be enforced during verify
phase of maven. To
fix reported issues mvn spotless:apply
can be used.
mvn test
should run unit tests. Tests that are not at component/class level i.e. requiring Spring
container are suffixed with IT
and are run via mvn integration-test
.
Unit test coverage using Jacoco can be run via mvn clean test jacoco:report
and report will be
generated in target/site/jacoco/index.html
. For integration tests
run mvn clean test-compile failsafe:integration-test jacoco:report
.
Note: If you want to exclude a class from test report, please add the exclusion in the pom.xml
for JacocoReport and also add the exclusion to sonarCoverageExclusions
in the Jenkinsfile.
mvn spring-boot:run
- Creating docker image
mvn install
docker build -t debgtjb/bestplan .
docker run -p 8080:8080 debgtjb/bestplan