test_class.declarator: view
test_class.modifier: @Mock
test_class.original_string: @Mock
      NavTabListWidget.View view;
test_class.type: NavTabListWidget.View
test_class.var_name: view
test_class.declarator: viewAdmin
test_class.modifier: @Mock
test_class.original_string: @Mock
      NavTabListWidget.View viewAdmin;
test_class.type: NavTabListWidget.View
test_class.var_name: viewAdmin
test_class.declarator: viewDashboards
test_class.modifier: @Mock
test_class.original_string: @Mock
      NavTabListWidget.View viewDashboards;
test_class.type: NavTabListWidget.View
test_class.var_name: viewDashboards
test_class.declarator: tablistBean
test_class.modifier: @Mock
test_class.original_string: @Mock
      SyncBeanDef<NavTabListWidget> tablistBean;
test_class.type: SyncBeanDef<NavTabListWidget>
test_class.var_name: tablistBean
test_class.declarator: pluginManager
test_class.modifier: @Mock
test_class.original_string: @Mock
      PerspectivePluginManager pluginManager;
test_class.type: PerspectivePluginManager
test_class.var_name: pluginManager
test_class.declarator: navigationManager
test_class.modifier: @Mock
test_class.original_string: @Mock
      NavigationManager navigationManager;
test_class.type: NavigationManager
test_class.var_name: navigationManager
test_class.declarator: beanManager
test_class.modifier: @Mock
test_class.original_string: @Mock
      SyncBeanManager beanManager;
test_class.type: SyncBeanManager
test_class.var_name: beanManager
test_class.declarator: placeManager
test_class.modifier: @Mock
test_class.original_string: @Mock
      PlaceManager placeManager;
test_class.type: PlaceManager
test_class.var_name: placeManager
test_class.declarator: tabsAdmin
test_class.original_string: NavTabListWidget tabsAdmin;
test_class.type: NavTabListWidget
test_class.var_name: tabsAdmin
test_class.declarator: tabsDashboards
test_class.original_string: NavTabListWidget tabsDashboards;
test_class.type: NavTabListWidget
test_class.var_name: tabsDashboards
test_class.declarator: presenter
test_class.original_string: NavTabListWidget presenter;
test_class.type: NavTabListWidget
test_class.var_name: presenter
test_class.declarator: tree
test_class.original_string: NavTree tree;
test_class.type: NavTree
test_class.var_name: tree
test_class.declarator: ITEM_ID_HOME = "home"
test_class.modifier: public static final
test_class.original_string: public static final String ITEM_ID_HOME = "home";
test_class.type: String
test_class.var_name: ITEM_ID_HOME
test_class.declarator: ITEM_ID_GALLERY = "gallery"
test_class.modifier: public static final
test_class.original_string: public static final String ITEM_ID_GALLERY = "gallery";
test_class.type: String
test_class.var_name: ITEM_ID_GALLERY
test_class.declarator: ITEM_ID_ADMIN = "admin"
test_class.modifier: public static final
test_class.original_string: public static final String ITEM_ID_ADMIN = "admin";
test_class.type: String
test_class.var_name: ITEM_ID_ADMIN
test_class.declarator: ITEM_ID_DATASETS = "datasets"
test_class.modifier: public static final
test_class.original_string: public static final String ITEM_ID_DATASETS = "datasets";
test_class.type: String
test_class.var_name: ITEM_ID_DATASETS
test_class.declarator: ITEM_ID_CONTENTMGMT = "contentmgmt"
test_class.modifier: public static final
test_class.original_string: public static final String ITEM_ID_CONTENTMGMT = "contentmgmt";
test_class.type: String
test_class.var_name: ITEM_ID_CONTENTMGMT
test_class.declarator: ITEM_ID_DASHBOARDS = "dashboards"
test_class.modifier: public static final
test_class.original_string: public static final String ITEM_ID_DASHBOARDS = "dashboards";
test_class.type: String
test_class.var_name: ITEM_ID_DASHBOARDS
test_class.declarator: ITEM_ID_DASHBOARD1 = "dashboard1"
test_class.modifier: public static final
test_class.original_string: public static final String ITEM_ID_DASHBOARD1 = "dashboard1";
test_class.type: String
test_class.var_name: ITEM_ID_DASHBOARD1
test_class.declarator: ITEM_ID_DASHBOARD2 = "dashboard2"
test_class.modifier: public static final
test_class.original_string: public static final String ITEM_ID_DASHBOARD2 = "dashboard2";
test_class.type: String
test_class.var_name: ITEM_ID_DASHBOARD2
test_class.file: dashbuilder-client/dashbuilder-navigation-client/src/test/java/org/dashbuilder/client/navigation/widget/NavTabListWidgetTest.java
test_class.identifier: NavTabListWidgetTest
test_case.body: @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());
      }
test_case.class_method_signature: NavTabListWidgetTest.testShow()
test_case.full_signature: @Test public void testShow()
test_case.identifier: testShow
test_case.invocations: show assertEquals getItemSelected getItemById init verify addItem verify eq anyString anyString any addItem verify eq anyString anyString any addGroupItem verify eq anyString anyString eq addGroupItem verify eq anyString anyString eq setSelectedItem verify showAsSubmenu verify showChildrenTabs verify never any addItem verify eq anyString anyString any addItem verify eq anyString anyString any showAsSubmenu verify showChildrenTabs verify never any addItem verify eq anyString anyString any addItem verify eq anyString anyString any
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testShow()
focal_class.declarator: view
focal_class.original_string: View view;
focal_class.type: View
focal_class.var_name: view
focal_class.declarator: beanManager
focal_class.original_string: SyncBeanManager beanManager;
focal_class.type: SyncBeanManager
focal_class.var_name: beanManager
focal_class.file: dashbuilder-client/dashbuilder-navigation-client/src/main/java/org/dashbuilder/client/navigation/widget/NavTabListWidget.java
focal_class.identifier: NavTabListWidget
focal_class.class_method_signature: NavTabListWidget.NavTabListWidget(View view,
                              SyncBeanManager beanManager,
                              PerspectivePluginManager pluginManager,
                              PlaceManager placeManager,
                              NavigationManager navigationManager)
focal_class.full_signature: @Inject public  NavTabListWidget(View view,
                              SyncBeanManager beanManager,
                              PerspectivePluginManager pluginManager,
                              PlaceManager placeManager,
                              NavigationManager navigationManager)
focal_class.identifier: NavTabListWidget
focal_class.modifiers: @Inject public
focal_class.parameters: (View view,
                              SyncBeanManager beanManager,
                              PerspectivePluginManager pluginManager,
                              PlaceManager placeManager,
                              NavigationManager navigationManager)
focal_class.signature:  NavTabListWidget(View view,
                              SyncBeanManager beanManager,
                              PerspectivePluginManager pluginManager,
                              PlaceManager placeManager,
                              NavigationManager navigationManager)
focal_class.class_method_signature: NavTabListWidget.lookupNavGroupWidget()
focal_class.full_signature: @Override protected NavWidget lookupNavGroupWidget()
focal_class.identifier: lookupNavGroupWidget
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: NavWidget
focal_class.signature: NavWidget lookupNavGroupWidget()
focal_class.class_method_signature: NavTabListWidget.setSelectedItem(String id)
focal_class.full_signature: @Override public boolean setSelectedItem(String id)
focal_class.identifier: setSelectedItem
focal_class.modifiers: @Override public
focal_class.parameters: (String id)
focal_class.return: boolean
focal_class.signature: boolean setSelectedItem(String id)
focal_class.class_method_signature: NavTabListWidget.show(List<NavItem> itemList)
focal_class.full_signature: @Override public void show(List<NavItem> itemList)
focal_class.identifier: show
focal_class.modifiers: @Override public
focal_class.parameters: (List<NavItem> itemList)
focal_class.return: void
focal_class.signature: void show(List<NavItem> itemList)
focal_class.class_method_signature: NavTabListWidget.onItemClicked(NavItem navItem)
focal_class.full_signature: @Override public void onItemClicked(NavItem navItem)
focal_class.identifier: onItemClicked
focal_class.modifiers: @Override public
focal_class.parameters: (NavItem navItem)
focal_class.return: void
focal_class.signature: void onItemClicked(NavItem navItem)
focal_class.class_method_signature: NavTabListWidget.onGroupTabClicked(String id)
focal_class.full_signature:  void onGroupTabClicked(String id)
focal_class.identifier: onGroupTabClicked
focal_class.parameters: (String id)
focal_class.return: void
focal_class.signature: void onGroupTabClicked(String id)
focal_class.superclass: extends TargetDivNavWidget
focal_method.body: @Override
      public void show(List<NavItem> itemList) {
          view.showAsSubmenu(getLevel() > 0);
          super.show(itemList);
      }
focal_method.class_method_signature: NavTabListWidget.show(List<NavItem> itemList)
focal_method.full_signature: @Override public void show(List<NavItem> itemList)
focal_method.identifier: show
focal_method.invocations: showAsSubmenu getLevel show
focal_method.modifiers: @Override public
focal_method.parameters: (List<NavItem> itemList)
focal_method.return: void
focal_method.signature: void show(List<NavItem> itemList)