报错如下:

Myeclipse解决method initializationerror not found:JUnit4单元测试报错问题


解决方法:

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

Myeclipse解决method initializationerror not found:JUnit4单元测试报错问题

然后再来运行就不报这个错误了

Myeclipse解决method initializationerror not found:JUnit4单元测试报错问题

相关文章: