问答详情
源自:4-8 DAO层单元测试编码和问题排查(上)

java.lang.Exception: No tests found matching.....?有没有遇到这样问题的同学【eclipse tomcat7 jdk8 maven3.5.0】

java.lang.Exception: No tests found matching [{ExactMatcher:fDisplayName=queryById], {ExactMatcher:fDisplayName=queryById(org.seckill.dao.SeckillDaoTest)], {LeadingIdentifierMatcher:fClassName=org.seckill.dao.SeckillDaoTest,fLeadingIdentifier=queryById]] from org.junit.internal.requests.ClassRequest@69d0a921

at org.junit.internal.requests.FilterRequest.getRunner(FilterRequest.java:35)

at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.createFilteredTest(JUnit4TestLoader.java:77)

at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.createTest(JUnit4TestLoader.java:68)

at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.loadTests(JUnit4TestLoader.java:43)

at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:444)

at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:678)

at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)

at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)


提问者:葱油拌面 2017-09-12 19:45

个回答

  • 咕嘟咕嘟和布鲁鲁
    2018-06-20 22:42:27

    Junit版本的问题,换成4.12就好了

  • 西皇
    2017-09-13 18:56:49

    没加@Test注解把