Lab1_report

Posted picheng

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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.

 技术分享图片技术分享图片

 技术分享图片

 

 

 

以上是关于Lab1_report的主要内容,如果未能解决你的问题,请参考以下文章