报错如下:
MockedAndInjectable.testInjectable(Locale)
initializationError(org.junit.runner.manipulation.Filter)
java.lang.Exception: No tests found matching [{ExactMatcher:fDisplayName=testInjectable(java.util.Locale)], {LeadingIdentifierMatcher:fClassName=java.util.Locale,fLeadingIdentifier=testInjectable]] from org.junit.internal.requests.ClassRequest@d2cc05a
at org.junit.internal.requests.FilterRequest.getRunner(FilterRequest.java:40)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.createFilteredTest(JUnit4TestLoader.java:80)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.createTest(JUnit4TestLoader.java:71)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.loadTests(JUnit4TestLoader.java:46)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:522)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:760)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:460)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:206)
站点中的学习示例 链接地址:http://jmockit.cn/showArticle.htm?channel=2&id=6
//@Mocked与@Injectable的不同 public class MockedAndInjectable {
}
报错如下: MockedAndInjectable.testInjectable(Locale) initializationError(org.junit.runner.manipulation.Filter) java.lang.Exception: No tests found matching [{ExactMatcher:fDisplayName=testInjectable(java.util.Locale)], {LeadingIdentifierMatcher:fClassName=java.util.Locale,fLeadingIdentifier=testInjectable]] from org.junit.internal.requests.ClassRequest@d2cc05a