java.lang.Exception: No tests found matching [{ExactMatcher:fDisplayName=findAll], {ExactMatcher:fDi
2017-09-29 12:16
483 查看
出现以上错误从两点查找,这个一般很少出现错误
一.
查看Test的函数有没有加static,加了会出错 。====也曾忘记加@Test
二.
查看Test的函数有没有返回值,有会出错,Test函数,据我目前观察返回类型都是void====返回值void没注意。找了好久。
另外看见网上有人说是spring-test版本问题,这个我没遇到过,就不知道了,如果上面两种检查过了,还没找到问题所在,可能就是spring-test版本问题了
一.
查看Test的函数有没有加static,加了会出错 。====也曾忘记加@Test
二.
查看Test的函数有没有返回值,有会出错,Test函数,据我目前观察返回类型都是void====返回值void没注意。找了好久。
另外看见网上有人说是spring-test版本问题,这个我没遇到过,就不知道了,如果上面两种检查过了,还没找到问题所在,可能就是spring-test版本问题了
相关文章推荐
- java.lang.Exception: No tests found matching [{ExactMatcher:fDisplayName=findAll], {ExactMatcher:fDi
- java.lang.Exception: No tests found matching [{ExactMatcher:fDisplayName=test]解决办法
- junit test 报错,java.lang.Exception: No tests found matching [{ExactMatcher:fDisplayName=esopCreateTest],
- java.lang.Exception: No tests found matching [{ExactMatcher:fDisplayName=getSession]
- junit运行测试报异常:java.lang.Exception: No tests found matching [{ExactMatcher:fDisplayName......
- 使用jutil测试程序出现错误java.lang.Exception: No tests found matching [{ExactMatcher:fDisplayName=classestest]
- java.lang.Exception: No tests found matching [{ExactMatcher:fDisplayName=testQueryById(long)], {Lead
- java.lang.Exception: No tests found matching [{ExactMatcher:fDisplayName=test]解决办法
- java.lang.Exception: No tests found matching [{ExactMatcher:fDisplayName=testDemo]出现原因及解决办法
- 谈一谈JUnit神奇的报错 java.lang.Exception:No tests found matching
- JUnit神奇的报错 java.lang.Exception:No tests found matching
- spring-test+junit测试出现java.lang.Exception: No tests found matching
- java.lang.Exception: No tests found matching
- java.lang.Exception: No tests found matching
- java.lang.Exception: No tests found matching
- java.lang.Exception: No tests found matching
- JUnit:java.lang.Exception: No tests found matching Method ***
- no tests found matching[{ExactMatcher:fDisplayName=testSave}]
- No tests found matching [{ExactMatcher:fDisplayName=dataSourceTest]........错误解决方法
- Junit测试问题:java.lang.Exception: No tests found matching