package src;
import junit.framework.TestCase;
public class testhello extends TestCase{
private hello hello01;
protected void setUp() throws Exception{
super.setUp();
hello01=new hello();
}
protected void tearDown() throws Exception{
super.tearDown();
}
public void testadd(){
assertEquals(hello01.add(4,3),7);
}}
我写了一个自动单元测试系统,用它来编译上面的那个测试程序,应该调用什么命令?怎么调用啊?
import junit.framework.TestCase;
public class testhello extends TestCase{
private hello hello01;
protected void setUp() throws Exception{
super.setUp();
hello01=new hello();
}
protected void tearDown() throws Exception{
super.tearDown();
}
public void testadd(){
assertEquals(hello01.add(4,3),7);
}}
我写了一个自动单元测试系统,用它来编译上面的那个测试程序,应该调用什么命令?怎么调用啊?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货