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
}
				}
				try {
					junitEntries.add(Platform.asLocalURL(new URL(runtimeURL, "bin")).getFile()); 
				} catch (IOException e1) {
					try {
						junitEntries.add(Platform.asLocalURL(new URL(runtimeURL, "junitruntime.jar")).getFile()); 
					} catch (IOException e4) {
						
					}
				}
				Assert.isTrue(junitEntries.size() == 2, "Required JARs available"); 
				
				classPath= new String[cp.length + junitEntries.size()];
				Object[] jea= junitEntries.toArray();
				System.arraycopy(cp, 0, classPath, 0, cp.length);
				System.arraycopy(jea, 0, classPath, cp.length, jea.length);
			} else {
				classPath= new String[cp.length + 2];
				System.arraycopy(cp, 0, classPath, 2, cp.length);
				classPath[0]= Platform.asLocalURL(new URL(url, "junitsupport.jar")).getFile(); 
				classPath[1]= Platform.asLocalURL(new URL(runtimeURL, "junitruntime.jar")).getFile(); 
			}
		} catch (IOException e) {
			JUnitPlugin.log(e); 
		}
		return classPath;
	}		
}