[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.newcomer] How can I get eclipse's junit plugin to run with java apps ?
|
- From: Bill Winspur <bwinspur@xxxxxxxxxx>
- Date: Wed, 22 Mar 2006 17:40:31 -0700
- Newsgroups: eclipse.newcomer
- Organization: EclipseCorner
- User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)
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