您的位置:首页 > 其它

junit测试中方法不运行问题所在

2009-07-29 01:04 369 查看
@Test后面的方法如果带有参数就会出现如题错误,即

@Test
public void addCustom(int a){
Custom c=new Custom();
c.setCcustomname("老羊公司");
c.setCfactoryaddress("邯郸某街");
c.setCphone("13838389438");
c.setCprincipal("爷");
c.setCsendaddress("老杨家");
Employee e=new Employee();
e.setEid(1);
c.setEmployee(e);
cd.addCustom(c);
}

需要把方法中的参数int a 去掉才能运行
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: