首页 > 其他 > 详细

Lab1_report

时间:2018-03-25 23:47:30      阅读:263      评论:0      收藏:0      [点我收藏+]

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

原文:https://www.cnblogs.com/picheng/p/8647585.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!