软件测试lab1
---恢復內容開始---
作業要求:
Install Junit(4.12), Hamcrest(1.3) with Eclipse
a)????? 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.
?
?
安裝Junit(4.12), Hamcrest(1.3) Eclemma請看上一篇博客/上一次作業
?
首先寫好需要用到的類和測試類
?
?
代碼請看https://github.com/StarLight1125/Software-Test
?
Junit 和Eclemma 使用截圖如下
?
?
?
用Eclemma看一下主類的覆蓋情況,沒有覆蓋到所有
?
再加一個測試用例
?
?
---恢復內容結束---
轉載于:https://www.cnblogs.com/quxingming/p/6529883.html
《新程序員》:云原生和全面數字化實踐50位技術專家共同創作,文字、視頻、音頻交互閱讀總結
- 上一篇: jpa tutorials
- 下一篇: 远程调用RestTemplate