09:57:37.953 EVENT Checking Resource aliases
09:57:38.000 EVENT Starting Jetty/4.2.17
09:57:38.000 EVENT Started HttpContext[/testGetContentOK]
09:57:38.000 EVENT Started HttpContext[/testGetContentNotFound]
09:57:38.000 EVENT Started SocketListener on 0.0.0.0:8080
09:57:38.000 EVENT Started [email=org.mortbay.http.HttpServer@1ffb8dc]org.mortbay.http.HttpServer@1ffb8dc[/email]
.09:57:38.000 EVENT Starting Jetty/4.2.17
09:57:38.015 EVENT Started HttpContext[/testGetContentOK]
09:57:38.015 EVENT Started HttpContext[/testGetContentNotFound]
09:57:38.015 WARN!! Failed to start: [email=SocketListener@0.0.0.0:8080]SocketListener@0.0.0.0:8080[/email]
E
Time: 0.015
There was 1 error:
1) [email=junit.framework.TestSuite@dc840forg.mortbay.util.MultiException[java.net.BindException]junit.framework.TestSuite@dc840forg.mortbay.util.MultiException[java.net.BindException[/email]: Address already in use: JVM_Bind]
at org.mortbay.http.HttpServer.start(HttpServer.java:640)
at stubtest.TestWebClientSetup1.setUp(TestWebClientSetup1.java:55)
at junit.extensions.TestSetup$1.protect(TestSetup.java:22)
at junit.extensions.TestSetup.run(TestSetup.java:27)
at stubtest.TestWebClient1.testSuite(TestWebClient1.java:20)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
at stubtest.TestWebClient1.testSuite(TestWebClient1.java:20)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:35)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
FAILURES!!!
Tests run: 0, Failures: 0, Errors: 1
..09:57:38.125 EVENT Stopped HttpContext[/testGetContentOK]
09:57:38.125 EVENT Stopped HttpContext[/testGetContentNotFound]
09:57:38.125 EVENT Stopped [email=org.mortbay.http.HttpServer@1a2961b]org.mortbay.http.HttpServer@1a2961b[/email]
Time: 0.25
OK (3 tests)作者: fairylly 时间: 2008-2-29 10:46 标题: Test suite()方法不是自动运行的吗? Test suite()方法不是自动运行的吗?作者: fairylly 时间: 2008-2-29 12:23
刚重新建立工程,再导入包,java文件,运行成功
可在之前那个工程就是不行