test_class.declarator: view
test_class.modifier: @Mock
test_class.original_string: @Mock DataSetExplorer.View view;
test_class.type: DataSetExplorer.View
test_class.var_name: view
test_class.declarator: dataSetPanel
test_class.modifier: @Mock
test_class.original_string: @Mock DataSetPanel dataSetPanel;
test_class.type: DataSetPanel
test_class.var_name: dataSetPanel
test_class.declarator: dataSetDef
test_class.modifier: @Mock
test_class.original_string: @Mock DataSetDef dataSetDef;
test_class.type: DataSetDef
test_class.var_name: dataSetDef
test_class.declarator: dataSetDefCustom
test_class.modifier: @Mock
test_class.original_string: @Mock DataSetDef dataSetDefCustom;
test_class.type: DataSetDef
test_class.var_name: dataSetDefCustom
test_class.declarator: dataSetClientServices
test_class.modifier: @Mock
test_class.original_string: @Mock DataSetClientServices dataSetClientServices;
test_class.type: DataSetClientServices
test_class.var_name: dataSetClientServices
test_class.declarator: panelInstances
test_class.original_string: Instance<DataSetPanel> panelInstances;
test_class.type: Instance<DataSetPanel>
test_class.var_name: panelInstances
test_class.declarator: presenter
test_class.modifier: private
test_class.original_string: private DataSetExplorer presenter;
test_class.type: DataSetExplorer
test_class.var_name: presenter
test_class.declarator: dataSetDefList = new ArrayList<DataSetDef>()
test_class.modifier: final
test_class.original_string: final List<DataSetDef> dataSetDefList = new ArrayList<DataSetDef>();
test_class.type: List<DataSetDef>
test_class.var_name: dataSetDefList
test_class.file: dashbuilder-client/dashbuilder-widgets/src/test/java/org/dashbuilder/client/widgets/dataset/explorer/DataSetExplorerTest.java
test_class.identifier: DataSetExplorerTest
test_case.body: @Test
      public void testOnDataSetDefModifiedEvent() {
          final DataSetDefModifiedEvent event = mock(DataSetDefModifiedEvent.class);
          when(event.getOldDataSetDef()).thenReturn(dataSetDef);
          when(event.getNewDataSetDef()).thenReturn(dataSetDef);
          presenter.panels.add(dataSetPanel);
          presenter.onDataSetDefModifiedEvent(event);
          assertEquals(1, presenter.panels.size());
          assertEquals(dataSetPanel, presenter.panels.get(0));
          verify(view, times(0)).clear();
          verify(view, times(0)).addPanel(any(DataSetPanel.View.class));
          verify(dataSetPanel, times(1)).show(dataSetDef, "dataSetsExplorerPanelGroup");
          verify(dataSetPanel, times(1)).close();
      }
test_case.class_method_signature: DataSetExplorerTest.testOnDataSetDefModifiedEvent()
test_case.full_signature: @Test public void testOnDataSetDefModifiedEvent()
test_case.identifier: testOnDataSetDefModifiedEvent
test_case.invocations: mock thenReturn when getOldDataSetDef thenReturn when getNewDataSetDef add onDataSetDefModifiedEvent assertEquals size assertEquals get clear verify times addPanel verify times any show verify times close verify times
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testOnDataSetDefModifiedEvent()
focal_class.declarator: SUPPORTED_TYPES = Arrays.asList(BEAN,
                                                                CSV,
                                                                ELASTICSEARCH,
                                                                SQL)
focal_class.original_string: List<DataSetProviderType> SUPPORTED_TYPES = Arrays.asList(BEAN,
                                                                CSV,
                                                                ELASTICSEARCH,
                                                                SQL);
focal_class.type: List<DataSetProviderType>
focal_class.var_name: SUPPORTED_TYPES
focal_class.declarator: panelInstances
focal_class.original_string: Instance<DataSetPanel> panelInstances;
focal_class.type: Instance<DataSetPanel>
focal_class.var_name: panelInstances
focal_class.declarator: clientServices
focal_class.original_string: DataSetClientServices clientServices;
focal_class.type: DataSetClientServices
focal_class.var_name: clientServices
focal_class.declarator: view
focal_class.original_string: View view;
focal_class.type: View
focal_class.var_name: view
focal_class.declarator: panels = new LinkedList<DataSetPanel>()
focal_class.original_string: List<DataSetPanel> panels = new LinkedList<DataSetPanel>();
focal_class.type: List<DataSetPanel>
focal_class.var_name: panels
focal_class.file: dashbuilder-client/dashbuilder-widgets/src/main/java/org/dashbuilder/client/widgets/dataset/explorer/DataSetExplorer.java
focal_class.identifier: DataSetExplorer
focal_class.interfaces: implements IsWidget
focal_class.class_method_signature: DataSetExplorer.DataSetExplorer(final Instance<DataSetPanel> panelInstances,
                             final DataSetClientServices clientServices,
                             final View view)
focal_class.full_signature: @Inject public  DataSetExplorer(final Instance<DataSetPanel> panelInstances,
                             final DataSetClientServices clientServices,
                             final View view)
focal_class.identifier: DataSetExplorer
focal_class.modifiers: @Inject public
focal_class.parameters: (final Instance<DataSetPanel> panelInstances,
                             final DataSetClientServices clientServices,
                             final View view)
focal_class.signature:  DataSetExplorer(final Instance<DataSetPanel> panelInstances,
                             final DataSetClientServices clientServices,
                             final View view)
focal_class.class_method_signature: DataSetExplorer.init()
focal_class.full_signature: @PostConstruct public void init()
focal_class.identifier: init
focal_class.modifiers: @PostConstruct public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void init()
focal_class.class_method_signature: DataSetExplorer.asWidget()
focal_class.full_signature: @Override public Widget asWidget()
focal_class.identifier: asWidget
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Widget
focal_class.signature: Widget asWidget()
focal_class.class_method_signature: DataSetExplorer.show()
focal_class.full_signature: public void show()
focal_class.identifier: show
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void show()
focal_class.class_method_signature: DataSetExplorer.isSupported(DataSetDef def)
focal_class.full_signature: private boolean isSupported(DataSetDef def)
focal_class.identifier: isSupported
focal_class.modifiers: private
focal_class.parameters: (DataSetDef def)
focal_class.return: boolean
focal_class.signature: boolean isSupported(DataSetDef def)
focal_class.class_method_signature: DataSetExplorer.addDataSetDef(final DataSetDef def)
focal_class.full_signature: private void addDataSetDef(final DataSetDef def)
focal_class.identifier: addDataSetDef
focal_class.modifiers: private
focal_class.parameters: (final DataSetDef def)
focal_class.return: void
focal_class.signature: void addDataSetDef(final DataSetDef def)
focal_class.class_method_signature: DataSetExplorer.updateDataSetDef(final DataSetDef def)
focal_class.full_signature: private void updateDataSetDef(final DataSetDef def)
focal_class.identifier: updateDataSetDef
focal_class.modifiers: private
focal_class.parameters: (final DataSetDef def)
focal_class.return: void
focal_class.signature: void updateDataSetDef(final DataSetDef def)
focal_class.class_method_signature: DataSetExplorer.getDataSetPanel(final String uuid)
focal_class.full_signature: private DataSetPanel getDataSetPanel(final String uuid)
focal_class.identifier: getDataSetPanel
focal_class.modifiers: private
focal_class.parameters: (final String uuid)
focal_class.return: DataSetPanel
focal_class.signature: DataSetPanel getDataSetPanel(final String uuid)
focal_class.class_method_signature: DataSetExplorer.clear()
focal_class.full_signature: private void clear()
focal_class.identifier: clear
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void clear()
focal_class.class_method_signature: DataSetExplorer.onDataSetDefRegisteredEvent(@Observes DataSetDefRegisteredEvent event)
focal_class.full_signature:  void onDataSetDefRegisteredEvent(@Observes DataSetDefRegisteredEvent event)
focal_class.identifier: onDataSetDefRegisteredEvent
focal_class.parameters: (@Observes DataSetDefRegisteredEvent event)
focal_class.return: void
focal_class.signature: void onDataSetDefRegisteredEvent(@Observes DataSetDefRegisteredEvent event)
focal_class.class_method_signature: DataSetExplorer.onDataSetDefModifiedEvent(@Observes DataSetDefModifiedEvent event)
focal_class.full_signature:  void onDataSetDefModifiedEvent(@Observes DataSetDefModifiedEvent event)
focal_class.identifier: onDataSetDefModifiedEvent
focal_class.parameters: (@Observes DataSetDefModifiedEvent event)
focal_class.return: void
focal_class.signature: void onDataSetDefModifiedEvent(@Observes DataSetDefModifiedEvent event)
focal_class.class_method_signature: DataSetExplorer.onDataSetDefRemovedEvent(@Observes DataSetDefRemovedEvent event)
focal_class.full_signature:  void onDataSetDefRemovedEvent(@Observes DataSetDefRemovedEvent event)
focal_class.identifier: onDataSetDefRemovedEvent
focal_class.parameters: (@Observes DataSetDefRemovedEvent event)
focal_class.return: void
focal_class.signature: void onDataSetDefRemovedEvent(@Observes DataSetDefRemovedEvent event)
focal_method.body: void onDataSetDefModifiedEvent(@Observes DataSetDefModifiedEvent event) {
          checkNotNull("event",
                       event);
  
          final DataSetDef def = event.getNewDataSetDef();
          if (def != null && def.isPublic()) {
              updateDataSetDef(def);
          }
      }
focal_method.class_method_signature: DataSetExplorer.onDataSetDefModifiedEvent(@Observes DataSetDefModifiedEvent event)
focal_method.full_signature:  void onDataSetDefModifiedEvent(@Observes DataSetDefModifiedEvent event)
focal_method.identifier: onDataSetDefModifiedEvent
focal_method.invocations: checkNotNull getNewDataSetDef isPublic updateDataSetDef
focal_method.parameters: (@Observes DataSetDefModifiedEvent event)
focal_method.return: void
focal_method.signature: void onDataSetDefModifiedEvent(@Observes DataSetDefModifiedEvent event)