Bug 94090 [JUnit] Workspace should take precedence over platform JUnit libraries
When launching a vanilla JUnit test (not PDE test) on a project that contains classes in org.eclipse.jdt.junit.*, the tested project is placed in the classpath of the launched JVM _after_ the jdt.junit.* plug-ins found in the platform. This is inconsistent with other behavior: when Eclipse is being run in the Run-time workbench, or when running a PDE test, the tested project is placed first.
org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/launcher/JUnitLaunchConfiguration.java
} else if (testTypes.length > 1) {
			String fileName= createTestNamesFile(testTypes);
			argv.add("-testNameFile"); 
			argv.add(fileName);
		} else {
			argv.add("-classNames"); 
			for (int i= 0; i < testTypes.length; i++) 
				argv.add(testTypes[i].getFullyQualifiedName());
		}
		if (testFailureNames.length() > 0) {
			argv.add("-testfailures"); 
			argv.add(testFailureNames);			
		}
		String[] args= new String[argv.size()];
		argv.copyInto(args);
		vmConfig.setProgramArguments(args);
		return vmConfig;
	}
	private String createTestNamesFile(IType[] testTypes) throws CoreException {
		try {
			File file= File.createTempFile("testNames", ".txt"); 
			file.deleteOnExit();
			BufferedWriter bw= null;
			try {
				bw= new BufferedWriter(new FileWriter(file));
				for (int i= 0; i < testTypes.length; i++) {
					String testName= testTypes[i].getFullyQualifiedName();
					bw.write(testName);
					bw.newLine();
				}