File myInternalJar= JavaTestPlugin.getDefault().getFileInPlugin(new Path("testresources/compoundtest.jar")); assertTrue("lib not found", myInternalJar != null && myInternalJar.exists());
	protected void setUp() throws Exception {		super.setUp();				fWorkspace= ResourcesPlugin.getWorkspace();		assertNotNull(fWorkspace);					IWorkspaceDescription workspaceDesc= fWorkspace.getDescription();		fEnableAutoBuildAfterTesting= workspaceDesc.isAutoBuilding();		if (fEnableAutoBuildAfterTesting)			JavaProjectHelper.setAutoBuilding(false);				fJProject1= JavaProjectHelper.createJavaProject("TestProject1", "bin");//$NON-NLS-1$//$NON-NLS-2$		fJProject2= JavaProjectHelper.createJavaProject("TestProject2", "bin");//$NON-NLS-1$//$NON-NLS-2$				assertNotNull("project1 null", fJProject1);//$NON-NLS-1$		assertNotNull("project2 null", fJProject2);//$NON-NLS-1$						//------------set up project #1 : External Jar and zip file-------				IPackageFragmentRoot jdk= JavaProjectHelper.addVariableRTJar(fJProject1, "JRE_LIB_TEST", null, null);//$NON-NLS-1$		assertTrue("jdk not found", jdk != null);//$NON-NLS-1$				//---Create zip file-------------------		java.io.File junitSrcArchive= JavaTestPlugin.getDefault().getFileInPlugin(JavaProjectHelper.JUNIT_SRC);						assertTrue("junit src not found", junitSrcArchive != null && junitSrcArchive.exists());//$NON-NLS-1$		fArchiveFragmentRoot= JavaProjectHelper.addSourceContainerWithImport(fJProject1, "src", junitSrcArchive);//$NON-NLS-1$				fPackJunit= fArchiveFragmentRoot.getPackageFragment("junit");//$NON-NLS-1$		fPackJunitSamples= fArchiveFragmentRoot.getPackageFragment("junit.samples");//$NON-NLS-1$		fPackJunitSamplesMoney= fArchiveFragmentRoot.getPackageFragment("junit.samples.money");//$NON-NLS-1$				assertNotNull("creating fPackJunit", fPackJunit);//$NON-NLS-1$		assertNotNull("creating fPackJunitSamples", fPackJunitSamples);//$NON-NLS-1$		assertNotNull("creating fPackJunitSamplesMoney",fPackJunitSamplesMoney);//$NON-NLS-1$				fPackJunitSamplesMoney.getCompilationUnit("IMoney.java");//$NON-NLS-1$		fPackJunitSamplesMoney.getCompilationUnit("Money.java");//$NON-NLS-1$		fPackJunitSamplesMoney.getCompilationUnit("MoneyBag.java");//$NON-NLS-1$		fPackJunitSamplesMoney.getCompilationUnit("MoneyTest.java");//$NON-NLS-1$				//java.io.File mylibJar= JavaTestPlugin.getDefault().getFileInPlugin(JavaProjectHelper.MYLIB);		//assertTrue("lib not found", mylibJar != null && mylibJar.exists());//$NON-NLS-1$		//JavaProjectHelper.addLibraryWithImport(fJProject1, new Path(mylibJar.getPath()), null, null);		//----------------Set up internal jar----------------------------		//File myInternalJar= JavaTestPlugin.getDefault().getFileInPlugin(new Path("testresources/compoundtest.jar"));//$NON-NLS-1$		//assertTrue("lib not found", myInternalJar != null && myInternalJar.exists());//$NON-NLS-1$				fInternalJarRoot= JavaProjectHelper.addLibraryWithImport(fJProject2, new Path("testresources/compoundtest.jar"), null, null); //$NON-NLS-1$				fInternalPackDefault= fInternalJarRoot.getPackageFragment("");//$NON-NLS-1$		fInternalPack3= fInternalJarRoot.getPackageFragment("pack3");//$NON-NLS-1$		fInternalPack4= fInternalJarRoot.getPackageFragment("pack3.pack4");//$NON-NLS-1$		fInternalPack5= fInternalJarRoot.getPackageFragment("pack3.pack5");//$NON-NLS-1$		fInternalPack6= fInternalJarRoot.getPackageFragment("pack3.pack5.pack6");//$NON-NLS-1$		fInternalPack10= fInternalJarRoot.getPackageFragment("pack3.pack4.pack10");//$NON-NLS-1$		fInternalPackMetaInf= fInternalJarRoot.getPackageFragment("META-INF");//$NON-NLS-1$				//-----------------Set up source folder--------------------------		fRoot2= JavaProjectHelper.addSourceContainer(fJProject2, "src2");//$NON-NLS-1$		fPackDefault2= fRoot2.createPackageFragment("",true,null);//$NON-NLS-1$		fPack12= fRoot2.createPackageFragment("pack1", true, null);//$NON-NLS-1$		fPack17= fRoot2.createPackageFragment("pack1.pack7",true,null);//$NON-NLS-1$		fPack32= fRoot2.createPackageFragment("pack3",true,null);//$NON-NLS-1$		fPack42= fRoot2.createPackageFragment("pack3.pack4", true,null);//$NON-NLS-1$		fPack52= fRoot2.createPackageFragment("pack3.pack5",true,null);//$NON-NLS-1$		fPack62= fRoot2.createPackageFragment("pack3.pack5.pack6", true, null);//$NON-NLS-1$		fPack102=fRoot2.createPackageFragment("pack3.pack4.pack10", true, null);//$NON-NLS-1$				fPack12.createCompilationUnit("Object.java", "", true, null);//$NON-NLS-1$//$NON-NLS-2$		fPack62.createCompilationUnit("Object.java","", true, null);//$NON-NLS-1$//$NON-NLS-2$		//set up project #2: file system structure with in a source folder	//	JavaProjectHelper.addVariableEntry(fJProject2, new Path("JRE_LIB_TEST"), null, null);		//----------------Set up source folder--------------------------		fRoot1= JavaProjectHelper.addSourceContainer(fJProject2, "src1"); //$NON-NLS-1$  		fPackDefault1= fRoot1.createPackageFragment("",true,null); //$NON-NLS-1$  		fPack21= fRoot1.createPackageFragment("pack2", true, null);//$NON-NLS-1$		fPack31= fRoot1.createPackageFragment("pack3",true,null);//$NON-NLS-1$		fPack41= fRoot1.createPackageFragment("pack3.pack4", true,null);//$NON-NLS-1$		fPack91= fRoot1.createPackageFragment("pack3.pack4.pack9",true,null);//$NON-NLS-1$		fPack51= fRoot1.createPackageFragment("pack3.pack5",true,null);//$NON-NLS-1$		fPack61= fRoot1.createPackageFragment("pack3.pack5.pack6", true, null);//$NON-NLS-1$		fPack81= fRoot1.createPackageFragment("pack3.pack8", true, null);//$NON-NLS-1$				fPack21.createCompilationUnit("Object.java", "", true, null);//$NON-NLS-1$//$NON-NLS-2$		fPack61.createCompilationUnit("Object.java","", true, null);//$NON-NLS-1$//$NON-NLS-2$				//set up the mock view		setUpMockView();	}