ClassPathDetector detector= new ClassPathDetector(fJProject1.getProject());
ClassPathDetector detector= new ClassPathDetector(fJProject1.getProject(), null);
	public void testSourceAndOutputOnProject() throws Exception {		fJProject1= JavaProjectHelper.createJavaProject("TestProject1", "");			// source folder & internal JAR			File junitSrcArchive= JavaTestPlugin.getDefault().getFileInPlugin(JavaProjectHelper.JUNIT_SRC_381);		assertTrue("junit src not found", junitSrcArchive != null && junitSrcArchive.exists());		JavaProjectHelper.addSourceContainerWithImport(fJProject1, "", junitSrcArchive, JavaProjectHelper.JUNIT_SRC_ENCODING);					IClasspathEntry[] jreEntries= PreferenceConstants.getDefaultJRELibrary();		for (int i= 0; i < jreEntries.length; i++) {			JavaProjectHelper.addToClasspath(fJProject1, jreEntries[i]);		}		fJProject1.getProject().build(IncrementalProjectBuilder.FULL_BUILD, null);			IClasspathEntry[] projectEntries= fJProject1.getRawClasspath();		IPath projectOutput= fJProject1.getOutputLocation();			clearClasspath();			ClassPathDetector detector= new ClassPathDetector(fJProject1.getProject());		IPath outputLocation= detector.getOutputLocation();		IClasspathEntry[] entries= detector.getClasspath();		assertNotNull("No classpath detected", entries);		assertNotNull("No outputLocation detected", outputLocation);			assertSameClasspath(projectEntries, entries);		assertTrue("Output folder", outputLocation.equals(projectOutput));	}