NavTabListWidget extends TargetDivNavWidget { @Override public void show(List<NavItem> itemList) { view.showAsSubmenu(getLevel() > 0); super.show(itemList); } @Inject  NavTabListWidget(View view,
                            SyncBeanManager beanManager,
                            PerspectivePluginManager pluginManager,
                            PlaceManager placeManager,
                            NavigationManager navigationManager); @Override boolean setSelectedItem(String id); @Override void show(List<NavItem> itemList); @Override void onItemClicked(NavItem navItem);  }
@Test public void testShow() { presenter.show(tree); assertEquals(presenter.getItemSelected(), tree.getItemById(ITEM_ID_HOME)); verify(view).init(presenter); verify(view).addItem(eq(ITEM_ID_HOME), anyString(), anyString(), any()); verify(view).addItem(eq(ITEM_ID_GALLERY), anyString(), anyString(), any()); verify(view).addGroupItem(eq(ITEM_ID_ADMIN), anyString(), anyString(), eq(tabsAdmin)); verify(view).addGroupItem(eq(ITEM_ID_DASHBOARDS), anyString(), anyString(), eq(tabsDashboards)); verify(view).setSelectedItem(ITEM_ID_HOME); verify(viewAdmin).showAsSubmenu(true); verify(viewAdmin, never()).showChildrenTabs(any()); verify(viewAdmin).addItem(eq(ITEM_ID_DATASETS), anyString(), anyString(), any()); verify(viewAdmin).addItem(eq(ITEM_ID_CONTENTMGMT), anyString(), anyString(), any()); verify(viewDashboards).showAsSubmenu(true); verify(viewDashboards, never()).showChildrenTabs(any()); verify(viewDashboards).addItem(eq(ITEM_ID_DASHBOARD1), anyString(), anyString(), any()); verify(viewDashboards).addItem(eq(ITEM_ID_DASHBOARD2), anyString(), anyString(), any()); }