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

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

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

posted @ 2020-08-29 10:52  路要一步一步走  阅读(491)  评论(0编辑  收藏  举报