Re: JUnit problem
<hicks@bigmailbox.net> wrote in message
news:1155304224.265265.258260@i42g2000cwa.googlegroups.com...
I'm trying to run a JUnit test in Eclipse 3.1. Google turned up no
solutions, so could I ask if anyone here can suggest anything?
When running the test I see the following error in the console. The
JUnit view also does not look correct, so I'm wondering if it's a
version problem. According to Eclipse, the version of the JUnit plugin
is 3.8.1.
Could not connect to: : 2065
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:452)
at java.net.Socket.connect(Socket.java:402)
at java.net.Socket.<init>(Socket.java:309)
at java.net.Socket.<init>(Socket.java:124)
at
org.eclipse.jdt.internal.junit.runner.SocketClientConnection.connect(SocketClientConnection.java:31)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.connect(RemoteTestRunner.java:663)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:413)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:598)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:235)
Did you try rebooting Eclipse and/or your computer? This has happened to
be twice before, and restarting seemed to fix it.
- Oliver