Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Error With JUnit?

843859Dec 3 2008 — edited Nov 20 2014
Firstly Apologies if this is situated in the wrong forum section.

I want to test my java coding, within my Eclipse environment (I am using Windows XP). I have recently downloaded Eclipse 3.4.1 (Ganymede) and Eclipse IDE for java.

I try to test some basic code first (see below):
package org.NewProject;
 
import junit.framework.TestCase;
 
public class PersonTest extends TestCase {
 
	public void testPerson() {
		fail("Not yet implemented");
	}
 
	public void testSetMaximumBooks() {
		fail("Not yet implemented");
	}
 
	public void testSetName() {
		fail("Not yet implemented");
	}
 
}
I go to Run > Run as > J Unit test.. And a Message comes up as 'Problem Launching JUnit test; No socket available'
Even though its set to fail, it should run, and produce resulting errors, however it does not run.

In my C: > program files > Java I have jre1.6.0_01 and j2re1.4.2_03 ( which I think are required), and i have also restarted my computer. Was just wondering what I am missing or if someone could point me in the right direction, as its annoying now :(

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 31 2008
Added on Dec 3 2008
2 comments
461 views