public void clear() { navbarNav.clear(); menuItemWidgetMap.clear(); menuItemContextWidgetMap.clear(); contextContainerWidgetMap.clear(); }
public void clear() { navbarNav.clear(); menuItemWidgetMap.clear(); menuItemContextWidgetMap.clear(); contextContainerWidgetMap.clear(); }
@Test public void testClear() { workbenchMenuCompactNavBarView.getMenuItemContextMenus().put("key", mock(ComplexPanel.class)); workbenchMenuCompactNavBarView.getMenuItemContextWidgetMap().put("key", mock(ComplexPanel.class)); workbenchMenuCompactNavBarView.clear(); verify(navbarNav).clear(); assertTrue(workbenchMenuCompactNavBarView.getMenuItemContextMenus().isEmpty()); assertTrue(workbenchMenuCompactNavBarView.getMenuItemContextWidgetMap().isEmpty()); } }
@Test public void testClear() { workbenchMenuStandardNavBarView.getContextContainerWidgetMap().put("key", mock(ComplexPanel.class)); workbenchMenuStandardNavBarView.getMenuItemContextWidgetMap().put("key", mock(ComplexPanel.class)); workbenchMenuStandardNavBarView.clear(); verify(navbarNav).clear(); assertTrue(workbenchMenuStandardNavBarView.getContextContainerWidgetMap().isEmpty()); assertTrue(workbenchMenuStandardNavBarView.getMenuItemContextWidgetMap().isEmpty()); } }
@Test public void testClear() { workbenchMenuCompactNavBarView.getMenuItemContextMenus().put("key", mock(ComplexPanel.class)); workbenchMenuCompactNavBarView.getMenuItemContextWidgetMap().put("key", mock(ComplexPanel.class)); workbenchMenuCompactNavBarView.clear(); verify(navbarNav).clear(); assertTrue(workbenchMenuCompactNavBarView.getMenuItemContextMenus().isEmpty()); assertTrue(workbenchMenuCompactNavBarView.getMenuItemContextWidgetMap().isEmpty()); } }
@Test public void testClear() { workbenchMenuStandardNavBarView.getContextContainerWidgetMap().put("key", mock(ComplexPanel.class)); workbenchMenuStandardNavBarView.getMenuItemContextWidgetMap().put("key", mock(ComplexPanel.class)); workbenchMenuStandardNavBarView.clear(); verify(navbarNav).clear(); assertTrue(workbenchMenuStandardNavBarView.getContextContainerWidgetMap().isEmpty()); assertTrue(workbenchMenuStandardNavBarView.getMenuItemContextWidgetMap().isEmpty()); } }