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

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

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

posted @ 2017-01-25 15:07  ppjj  阅读(17385)  评论(0编辑  收藏  举报