zno2

initializationError

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){
        
    }

 

posted on 2023-06-06 13:19  zno2  阅读(70)  评论(0编辑  收藏  举报

导航