Bug 75142 JUnit integration on top of Hyades
Hi, I'm responsible of the Hyades test UI plugins and in charge of this new feature (already discuss between Hyades' committers and you). Can you contact me to discuss on how we can engage this. Thanks
org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/wizards/NewTestCaseCreationWizardPage.java
}	
		}
		JUnitStatus status= new JUnitStatus();
		status.setWarning(WizardMessages.getString("NewTestClassWizPage.error.junitNotOnbuildpath")); 		
		fContainerStatus= status;
	}
	
	public static void addJUnitToBuildPath(Shell shell, IJavaProject project) throws JavaModelException {
		IProject junitProject= ResourcesPlugin.getWorkspace().getRoot().getProject("org.junit"); 
		IClasspathEntry entry;
		if (junitProject.exists()) {
			entry= JavaCore.newProjectEntry(junitProject.getFullPath());
		} else {
			IPath junitHome= new Path(JUnitPlugin.JUNIT_HOME);
			IPath sourceHome= new Path("ECLIPSE_HOME"); 
			entry= JavaCore.newVariableEntry(
				junitHome.append("junit.jar"),   
				
				sourceHome.append("plugins/org.eclipse.jdt.source_3.0.0/src/org.junit_3.8.1/junitsrc.zip"),  
				null
			);
		}
		addToClasspath(shell, project, entry);
	}	
	
	private static void addToClasspath(Shell shell, final IJavaProject project, IClasspathEntry entry) throws JavaModelException {
		IClasspathEntry[] oldEntries= project.getRawClasspath();
		for (int i= 0; i < oldEntries.length; i++) {
			if (oldEntries[i].equals(entry)) {
				return;