[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.newcomer] Re: How can I get eclipse's junit plugin to run with java apps ?

Bill Winspur wrote:
I am having a problem getting JUnit to run. My test-case, java project, consists of two minimal classes:

1. The app class has main(), hello() and getter and setter methods
2. The TestCase class confirms that what is got is what was set on an instance of the app class.


Run as > java Application (on the app class) works OK - hello appears.
Run as > JU2 Unit Test (on the TestCase class) fails, throwing:
  'ConnectionException: connection refused: connect'
from
  'org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.connect'

Why does the test case not run?

How does one go about testing standalone java apps in eclipse?

Bill

Eclipse version 3.1.1, build M20050929--840

For what its worth: I have learned enough to get by. the JUnit runner (and the java application runner) execute the project classes outside eclipse in their own JVM. The JUnit runner has an IP link to the eclipse instance that launched it, which is used to pass test status info to the JUnit view.