Skip to content

max-moroz/integer-division

Repository files navigation

Integer Division (Tasks 4)

Table of content

Task

Write an application integer-division that divides integer numbers and prints result into console. + JUnit tests(!!!).

Example of result: Integer division image

How to build:

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:

Win make image

  • or use Command Prompt: navigate to project's root folder and type make.bat command:

Win make Command Prompt image

  • 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:

Linux build image

MacOS build image

  • 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.

File structure

├── 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

Dependencies:

  • 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)

Technologies Project is created with:

  • Java EE 1.8
  • Junit 5
  • Maven

Information and links

Tests coverage report

Test coverage

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published