This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JUnit4 Test Suite error - PLEASE HELP!!  RSS feed

Ravissant Saraswat
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everyone,
I've written a main class from which I'm calling a JUnit test case. Now, the JUnit test case runs fine as long as the main class is in the same project , but I get the following exception when I put the main class in another project and execute it after adding the import statements etc :

2011-10-11 10:32:07 [ERROR] [] @ RemotePersistentOptimizationDelegate : lookupServer : 122 - Error looking up the remote server
java.rmi.ConnectIOException: Exception creating connection to:; nested exception is: No route to host: connect
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
at sun.rmi.server.UnicastRef.newCall(Unknown Source)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)

I added all dependent projects from the JUnit project to the main class' build path too, still I get the above error .

The following is my main class :

Please, Please help!!

Thanks in advance,
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!