软件测试作业
1、Question
//根据下面三角形程序,结合白盒测试用例设计技术,在Junit工具中编写对应的单元测试脚本。
package test1;
public class Triangle {
protected long A, B, C = 0;
public Triangle(long A, long B, long C) {
this.A = A;
this.B = B;
this.C = C;
}
public boolean isTriangle(Triangle tri){
boolean isTrue = false;
if((tri.A>0) &&(tri.B>0) &&(tri.C>0)) {
if((tri.A<(tri.B+tri.C)) &&(tri.B<(tri.A