Bug 98472 New project wizard: second page remove from class path should ask for removal of folder when linked
RC1 - create a new project - switch to the second page - link in additional source observe: there is no way to unlink the addtional source We should offer to unlink the folder when the folder is removed from the build path again.
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/dialogs/NewProjectWizardTest.java
assertTrue(projectRoot.equals(getProjectRoot(fProject.getCorrespondingResource())));
        
        
        assertFalse(ClasspathModifier.getClasspathEntryFor(fProject.getPath(), fProject, IClasspathEntry.CPE_SOURCE) == null);
        
        assertFalse(ClasspathModifier.getClasspathEntryFor(root.getPath(), fProject, IClasspathEntry.CPE_SOURCE) == null);
        assertFalse(fProject.findPackageFragment(normalFolder.getFullPath()) == null);
        assertFalse(fProject.findPackageFragment(fragment.getPath()) == null);
        
        IJavaProject jProject= (IJavaProject)executeOperation(IClasspathInformationProvider.REMOVE_FROM_BP, fProject, null, null, null, null);
        
        assertTrue(jProject.equals(fProject));
        assertTrue(ClasspathModifier.getClasspathEntryFor(fProject.getPath(), fProject, IClasspathEntry.CPE_SOURCE) == null);
        assertFalse(ClasspathModifier.getClasspathEntryFor(root.getPath(), fProject, IClasspathEntry.CPE_SOURCE) == null);
        assertTrue(fProject.findPackageFragment(normalFolder.getFullPath()) == null);
        assertTrue(fProject.findPackageFragment(fragment.getPath()) == null);
        
        projectRoot= (IPackageFragmentRoot)executeOperation(IClasspathInformationProvider.ADD_SEL_SF_TO_BP, fProject, getOutputFolderQueryInternal(fProject.getOutputLocation()), null, null, null);
        assertTrue(projectRoot.equals(getProjectRoot(fProject.getCorrespondingResource())));
        
        validateClasspath();
    }
    
    
    public void testIncludePackage() throws JavaModelException, CoreException, InvocationTargetException, InterruptedException {
        includePackage();
        
        validateClasspath();
    }