public void testSourceOnSourcepath_notOnPath_localSource() throws Exception { NBSource source = createSampleSource(); setSourcepathRoot(getRoot().mkdir("some_other_sourcepath_root").getFileOrNull()); assertFalse( PathUtil.getInstance() .sourceOnSourcepath( IDEController.getInstance().getActiveProjectFromIDE(), source.getFileObject())); }
public void testSourceOnSourcepath_ignored() throws Exception { NBSource source = createSampleSource(); assertTrue( PathUtil.getInstance() .sourceOnSourcepath( IDEController.getInstance().getActiveProjectFromIDE(), source.getFileObject())); setIgnoredOnSourcepath((NBSource) source.getParent()); assertFalse( PathUtil.getInstance() .sourceOnSourcepath( IDEController.getInstance().getActiveProjectFromIDE(), source.getFileObject())); }