JUnit: Installing the JUnit installation with Eclipse is a simple matter of pouring two packages into a project, but I would like to use MAVEN to build the project in eclipse, but maybe the eclipse version is too low to use JUNIT4. So I chose to do it using idea, first of all using the idea maven to build the project, and adding JUnit's package dependency to the Pom.xml file: <dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
In this way, JUnit is installed directly.
Hamcrest is easier, directly in the use of the class file plus import static org.hamcrest.matchers.*;
The overlay test of idea does not require a Eclemma installation, it can be added directly to the edit configuration.
Test with edge Length (1,1,1) (1,1,0) (2,3,4), test results passed, and coverage reached 100%
Installation of Junit Hamcrest and Eclemma