Lab1_report

Tasks:

  1. Install Junit(4.12), Hamcrest(1.3) with Eclipse
  2. Install Eclemma with Eclipse
  3. 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.

 

 

 

 

 

posted @ 2018-03-25 22:58  Picheng  阅读(108)  评论(0)    收藏  举报