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