use of org.eclipse.n4js.utils.collections.Arrays2.isEmpty in project n4js by eclipse.
the class SelectAllProjectExplorer_PluginUITest method tearDown.
@Override
public void tearDown() throws Exception {
super.tearDown();
broker.resetState();
waitForIdleState();
final TreeItem[] treeItems = commonViewer.getTree().getItems();
assertTrue("Expected empty Project Explorer. Input was: " + Arrays.toString(treeItems), Arrays2.isEmpty(treeItems));
assertFalse("Expected projects as top level elements in navigator.", broker.isWorkingSetTopLevel());
assertNull("Select working set drop down contribution was visible when projects are configured as top level elements.", getWorkingSetDropDownContribution());
IContributionItem showHiddenWorkingSetsItem = from(Arrays.asList(projectExplorer.getViewSite().getActionBars().getToolBarManager().getItems())).firstMatch(i -> ShowHiddenWorkingSetsDropDownAction.class.getName().equals(i.getId())).orNull();
assertNull("Show hidden working set drop down contribution was visible when projects are configured as top level elements.", showHiddenWorkingSetsItem);
}
Aggregations