junit.framework.AssertionFailedError: No tests found in错误解决办法

来源:互联网 发布:移动商城源码 编辑:程序博客网 时间:2024/06/05 10:05



public void TestIDcard() throws Exception{}



报错:junit.framework.AssertionFailedError: No tests found in。。。。。。。。。。。。。。。。。。。


解决办法:

在测试办法前面加test,即把TestIDcard()改为testIDcard()。这样后就可以运行了
原创粉丝点击