请问ip地址要在同一个网段吗,我用的阿里云,Java测试报错了
java.lang.Exception: No tests found matching [{ExactMatcher:fDisplayName=demo1], {ExactMatcher:fDisplayName=demo1(com.xf.JedisDemo1)], {LeadingIdentifierMatcher:fClassName=com.xf.JedisDemo1,fLeadingIdentifier=demo1]] from org.junit.internal.requests.ClassRequest@77cd7a0 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)
是啊,要使用main方法吗?
你是不是用JUnit启动的,没有用main方法?