Tasks:
- Install Junit(4.12), Hamcrest(1.3) with Eclipse
- Install Eclemma with Eclipse
- Write a java program for the triangle problem and test the program with Junit.
Description of triangle problem:
Function triangle takes three integers a,b,c which are length of triangle sides; calculates whether the triangle is equilateral, isosceles, or scalene.
Tasks Report:
a) The brief description that you install junit, hamcrest and eclemma.
install junit, hamcrest:
Open eclipse and right-click on the project, choose bulid path -> add libraries -> hamcrest/(Junit ->Junit 4) -> Finish.
install eclemma:
Open eclipse -> Help -> Eclipse Marketplace -> search “Eclemma” -> Installed
b) The test result and coverage report (print screen) of your tests on triangle problem.