zl程序教程

您现在的位置是:首页 >  其他

当前栏目

junit测试时报No runnable methods错误的解决方法

错误方法junit测试 解决 No 时报 methods
2023-09-27 14:25:33 时间

1.因为你@Test时import的是@org.testng.annotations.Test所以会报错

解决方法:改为import org.junit.Test;就可以了