Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / August 2006

Tip: Looking for answers? Try searching our database.

JUnit problem

Thread view: 
hicks@bigmailbox.net - 11 Aug 2006 14:50 GMT
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)
Oliver Wong - 11 Aug 2006 14:53 GMT
> 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?
[quoted text clipped - 23 lines]
> 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
hicks@bigmailbox.net - 11 Aug 2006 15:15 GMT
> > 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?
[quoted text clipped - 28 lines]
>
>     - Oliver

Yes, rebooted and restarted Eclipse. Still no joy. The annoying thing
is, this did work at some point since I have JUnit test cases defined
and managed to run them in the past.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.