问答详情
源自:4-7 mybatis整合Spring编码

执行JUNIT4时报错

java.lang.Exception: No tests found matching [{ExactMatcher:fDisplayName=testReduceNumber], {ExactMatcher:fDisplayName=testReduceNumber(com.bfs.dao.SeckillDaoTest)], {LeadingIdentifierMatcher:fClassName=com.bfs.dao.SeckillDaoTest,fLeadingIdentifier=testReduceNumber]] from org.junit.internal.requests.ClassRequest@6659c656

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)


提问者:攻城狮Flion 2017-08-27 23:56

个回答

  • 慕粉1224192616
    2017-09-15 14:50:00

    看下这篇博客,对于这个作物写的很详细http://blog.csdn.net/sinat_32873711/article/details/53780453