为了账号安全,请及时绑定邮箱和手机立即绑定

用Junit测试时出现method initializationError not found ,opening the test class

用Junit测试时出现method initializationError not found ,opening the test class,如何处理

正在回答

3 回答

myEclipse自带了junit的包,报错如上图就是项目中没有导入这个包,选中某个工程 - Properties - Java bulid path - add library - junit 即可

0 回复 有任何疑惑可以回复我~

方法出现了初始化错误没有创建,是你额test测试类里的方法,看看你有没有哪里写错,或者是写完没有保存

1 回复 有任何疑惑可以回复我~

11123

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

用Junit测试时出现method initializationError not found ,opening the test class

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号