码迷,mamicode.com
首页 > 其他好文 > 详细

Lab1_report

时间:2018-03-26 00:41:32      阅读:173      评论:0      收藏:0      [点我收藏+]

标签:sid   image   project   inf   uila   .com   repo   nis   problem   

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

标签:sid   image   project   inf   uila   .com   repo   nis   problem   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!