- Task
- How to build
- File Structure
- Dependencies
- Technologies
- Information and links
- Tests coverage report
Write an application integer-division that divides integer numbers and prints result into console. + JUnit tests(!!!).
Make sure that Java Development Kit (JDK) and Maven tool are installed on your machine.
There are two options how to build project:
-
Windows:
- double-click on
make.bat
:
- double-click on
- or use Command Prompt: navigate to project's root folder and type
make.bat
command:
-
or use
mvnw.cmd package
command in Terminal (Maven Wrapper) -
or use
mvn package
command in Terminal (Maven)
-
Linux/MacOS:
- execute
make.sh
script file by using./make.sh
command:
- execute
-
or use
./mvnw package
command in Terminal (Maven Wrapper) -
or use
mvn package
command in Terminal with Maven
make.bat
and make.sh
will create a dist
folder with application execution jar, batch and bash files.
├── src
│ ├── main
│ │ └── java
│ │ │── ua/com/foxminded/integerdivision
│ │ │ └── Main.java
│ │ │
│ │ │── ua/com/foxminded/integerdivision/container
│ │ │ └── Context.java
│ │ │
│ │ │── ua/com/foxminded/integerdivision/math
│ │ │ └── Divider.java
│ │ │
│ │ └── ua/com/foxminded/integerdivision/text
│ │ └── LineFormatter.java
│ │
│ └── test
│ └── java
│ │── ua/com/foxminded/integerdivision
│ │ └── MainTest.java
│ │
│ │── ua/com/foxminded/integerdivision/container
│ │ └── ContextTest.java
│ │
│ │── ua/com/foxminded/integerdivision/math
│ │ └── DividerTest.java
│ │
│ └── ua/com/foxminded/integerdivision/text
│ └── LineFormatterTest.java
|
├── docs
│ └── img
│ └── *.png
│-- target
├── .gitignore
├── make.bat
├── make.sh
└── README.md
- JUnit Platform: junit-platform-console-standalone-1.6.0 (download)
- JUnit TestEngine API: junit-jupiter-api-5.6.0 (download)
- Mockito mocking framework for unit tests: mockito-all-1.10.19 (download)
- JaCoCo - Java Code Coverage Library 0.8.5 (download)
- Maven Wrapper (download)
- Maven Shade Plugin: maven-shade-plugin-3.2.3 (download)
- Java EE 1.8
- Junit 5
- Maven