HttpUtilsTest.sdf
initializationError(org.junit.runner.manipulation.Filter)
java.lang.Exception: No tests found matching [{ExactMatcher:fDisplayName=sdf], {ExactMatcher:fDisplayName=sdf(cn.zno.newstar.base.utils.http.HttpUtilsTest)], {LeadingIdentifierMatcher:fClassName=cn.zno.newstar.base.utils.http.HttpUtilsTest,fLeadingIdentifier=sdf]] from org.junit.internal.requests.ClassRequest@6a8e96fc
at org.junit.internal.requests.FilterRequest.getRunner(FilterRequest.java:40)
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:675)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
原因是试图执行一个带参数的junit test
比如:
@Test public void sdf(String s){ }
标签:java,runner,junit,RemoteTestRunner,internal,org,initializationError From: https://www.cnblogs.com/zno2/p/6591779.html