test_class.declarator: columnsEditor
test_class.modifier: @Mock
test_class.original_string: @Mock DataSetDefColumnsEditor columnsEditor;
test_class.type: DataSetDefColumnsEditor
test_class.var_name: columnsEditor
test_class.declarator: dataSetFilterEditor
test_class.modifier: @Mock
test_class.original_string: @Mock DataSetDefFilterEditor dataSetFilterEditor;
test_class.type: DataSetDefFilterEditor
test_class.var_name: dataSetFilterEditor
test_class.declarator: view
test_class.modifier: @Mock
test_class.original_string: @Mock DataSetDefColumnsFilterEditor.View view;
test_class.type: DataSetDefColumnsFilterEditor.View
test_class.var_name: view
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: tested
test_class.modifier: private
test_class.original_string: private DataSetDefColumnsFilterEditor tested;
test_class.type: DataSetDefColumnsFilterEditor
test_class.var_name: tested
test_class.file: dashbuilder-client/dashbuilder-widgets/src/test/java/org/dashbuilder/client/widgets/dataset/editor/DataSetDefColumnsFilterEditorTest.java
test_class.identifier: DataSetDefColumnsFilterEditorTest
test_case.body: @Test
      public void testOnFilterChangedEvent() throws Exception {
          DataSetFilter oldFilter = mock(DataSetFilter.class);
          List<ColumnFilter> oldCreateColumnFilters = createColumnFilters("col1", "col2", "col3");
          when(oldFilter.getColumnFilterList()).thenReturn(oldCreateColumnFilters);
          DataSetFilter newFilter = mock(DataSetFilter.class);
          List<ColumnFilter> createColumnFilters = createColumnFilters("col2");
          when(newFilter.getColumnFilterList()).thenReturn(createColumnFilters);
          when(dataSetDef.getDataSetFilter()).thenReturn(newFilter);
          FilterChangedEvent filterChangedEvent = mock(FilterChangedEvent.class);
          when(filterChangedEvent.getContext()).thenReturn(dataSetFilterEditor);
          when(filterChangedEvent.getOldFilter()).thenReturn(oldFilter);
          when(filterChangedEvent.getFilter()).thenReturn(newFilter);
          tested.onFilterChangedEvent(filterChangedEvent);
          verify(columnsEditor, times(1)).onValueRestricted("col2");
          verify(columnsEditor, times(1)).onValueUnRestricted("col1");
          verify(columnsEditor, times(1)).onValueUnRestricted("col3");
          verify(columnsEditor, times(0)).setAcceptableValues(any(List.class));
          verify(view, times(0)).init(tested);
          verify(view, times(0)).initWidgets(any(IsWidget.class), any(DataSetDefFilterEditor.View.class));
          verify(view, times(0)).setMaxHeight(anyString());
      }
test_case.class_method_signature: DataSetDefColumnsFilterEditorTest.testOnFilterChangedEvent()
test_case.full_signature: @Test public void testOnFilterChangedEvent()
test_case.identifier: testOnFilterChangedEvent
test_case.invocations: mock createColumnFilters thenReturn when getColumnFilterList mock createColumnFilters thenReturn when getColumnFilterList thenReturn when getDataSetFilter mock thenReturn when getContext thenReturn when getOldFilter thenReturn when getFilter onFilterChangedEvent onValueRestricted verify times onValueUnRestricted verify times onValueUnRestricted verify times setAcceptableValues verify times any init verify times initWidgets verify times any any setMaxHeight verify times anyString
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testOnFilterChangedEvent()
focal_class.declarator: columnsEditor
focal_class.original_string: DataSetDefColumnsEditor columnsEditor;
focal_class.type: DataSetDefColumnsEditor
focal_class.var_name: columnsEditor
focal_class.declarator: dataSetFilterEditor
focal_class.original_string: DataSetDefFilterEditor dataSetFilterEditor;
focal_class.type: DataSetDefFilterEditor
focal_class.var_name: dataSetFilterEditor
focal_class.declarator: view
focal_class.modifier: public
focal_class.original_string: public View view;
focal_class.type: View
focal_class.var_name: view
focal_class.file: dashbuilder-client/dashbuilder-widgets/src/main/java/org/dashbuilder/client/widgets/dataset/editor/DataSetDefColumnsFilterEditor.java
focal_class.identifier: DataSetDefColumnsFilterEditor
focal_class.interfaces: implements IsWidget,
                                                        org.dashbuilder.dataset.client.editor.DataSetDefColumnsFilterEditor
focal_class.class_method_signature: DataSetDefColumnsFilterEditor.DataSetDefColumnsFilterEditor(final DataSetDefColumnsEditor columnsEditor,
                                           final DataSetDefFilterEditor dataSetFilterEditor,
                                           final View view)
focal_class.full_signature: @Inject public  DataSetDefColumnsFilterEditor(final DataSetDefColumnsEditor columnsEditor,
                                           final DataSetDefFilterEditor dataSetFilterEditor,
                                           final View view)
focal_class.identifier: DataSetDefColumnsFilterEditor
focal_class.modifiers: @Inject public
focal_class.parameters: (final DataSetDefColumnsEditor columnsEditor,
                                           final DataSetDefFilterEditor dataSetFilterEditor,
                                           final View view)
focal_class.signature:  DataSetDefColumnsFilterEditor(final DataSetDefColumnsEditor columnsEditor,
                                           final DataSetDefFilterEditor dataSetFilterEditor,
                                           final View view)
focal_class.class_method_signature: DataSetDefColumnsFilterEditor.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: DataSetDefColumnsFilterEditor.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: DataSetDefColumnsFilterEditor.setMaxHeight(final String maxHeight)
focal_class.full_signature: public void setMaxHeight(final String maxHeight)
focal_class.identifier: setMaxHeight
focal_class.modifiers: public
focal_class.parameters: (final String maxHeight)
focal_class.return: void
focal_class.signature: void setMaxHeight(final String maxHeight)
focal_class.class_method_signature: DataSetDefColumnsFilterEditor.columnListEditor()
focal_class.full_signature: @Override public org.dashbuilder.dataset.client.editor.DataSetDefColumnsEditor columnListEditor()
focal_class.identifier: columnListEditor
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: org.dashbuilder.dataset.client.editor.DataSetDefColumnsEditor
focal_class.signature: org.dashbuilder.dataset.client.editor.DataSetDefColumnsEditor columnListEditor()
focal_class.class_method_signature: DataSetDefColumnsFilterEditor.dataSetFilter()
focal_class.full_signature: @Override public org.dashbuilder.dataset.client.editor.DataSetDefFilterEditor dataSetFilter()
focal_class.identifier: dataSetFilter
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: org.dashbuilder.dataset.client.editor.DataSetDefFilterEditor
focal_class.signature: org.dashbuilder.dataset.client.editor.DataSetDefFilterEditor dataSetFilter()
focal_class.class_method_signature: DataSetDefColumnsFilterEditor.setAcceptableValues(final List<DataColumnDef> acceptableValues)
focal_class.full_signature: @Override public void setAcceptableValues(final List<DataColumnDef> acceptableValues)
focal_class.identifier: setAcceptableValues
focal_class.modifiers: @Override public
focal_class.parameters: (final List<DataColumnDef> acceptableValues)
focal_class.return: void
focal_class.signature: void setAcceptableValues(final List<DataColumnDef> acceptableValues)
focal_class.class_method_signature: DataSetDefColumnsFilterEditor.flush()
focal_class.full_signature: @Override public void flush()
focal_class.identifier: flush
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void flush()
focal_class.class_method_signature: DataSetDefColumnsFilterEditor.onPropertyChange(final String... paths)
focal_class.full_signature: @Override public void onPropertyChange(final String... paths)
focal_class.identifier: onPropertyChange
focal_class.modifiers: @Override public
focal_class.parameters: (final String... paths)
focal_class.return: void
focal_class.signature: void onPropertyChange(final String... paths)
focal_class.class_method_signature: DataSetDefColumnsFilterEditor.setValue(final DataSetDef value)
focal_class.full_signature: @Override public void setValue(final DataSetDef value)
focal_class.identifier: setValue
focal_class.modifiers: @Override public
focal_class.parameters: (final DataSetDef value)
focal_class.return: void
focal_class.signature: void setValue(final DataSetDef value)
focal_class.class_method_signature: DataSetDefColumnsFilterEditor.setDelegate(final EditorDelegate<DataSetDef> delegate)
focal_class.full_signature: @Override public void setDelegate(final EditorDelegate<DataSetDef> delegate)
focal_class.identifier: setDelegate
focal_class.modifiers: @Override public
focal_class.parameters: (final EditorDelegate<DataSetDef> delegate)
focal_class.return: void
focal_class.signature: void setDelegate(final EditorDelegate<DataSetDef> delegate)
focal_class.class_method_signature: DataSetDefColumnsFilterEditor.updateColumnsRestrictedByFilter(final DataSetFilter oldFilter,
                                                   final DataSetFilter f)
focal_class.full_signature: private void updateColumnsRestrictedByFilter(final DataSetFilter oldFilter,
                                                   final DataSetFilter f)
focal_class.identifier: updateColumnsRestrictedByFilter
focal_class.modifiers: private
focal_class.parameters: (final DataSetFilter oldFilter,
                                                   final DataSetFilter f)
focal_class.return: void
focal_class.signature: void updateColumnsRestrictedByFilter(final DataSetFilter oldFilter,
                                                   final DataSetFilter f)
focal_class.class_method_signature: DataSetDefColumnsFilterEditor.getFilterColumnIds(final DataSetFilter filter)
focal_class.full_signature: private List<String> getFilterColumnIds(final DataSetFilter filter)
focal_class.identifier: getFilterColumnIds
focal_class.modifiers: private
focal_class.parameters: (final DataSetFilter filter)
focal_class.return: List<String>
focal_class.signature: List<String> getFilterColumnIds(final DataSetFilter filter)
focal_class.class_method_signature: DataSetDefColumnsFilterEditor.onFilterChangedEvent(@Observes FilterChangedEvent filterChangedEvent)
focal_class.full_signature:  void onFilterChangedEvent(@Observes FilterChangedEvent filterChangedEvent)
focal_class.identifier: onFilterChangedEvent
focal_class.parameters: (@Observes FilterChangedEvent filterChangedEvent)
focal_class.return: void
focal_class.signature: void onFilterChangedEvent(@Observes FilterChangedEvent filterChangedEvent)
focal_method.body: void onFilterChangedEvent(@Observes FilterChangedEvent filterChangedEvent) {
          checkNotNull("filterChangedEvent",
                       filterChangedEvent);
          if (filterChangedEvent.getContext().equals(dataSetFilterEditor)) {
              final DataSetFilter old = filterChangedEvent.getOldFilter();
              final DataSetFilter f = filterChangedEvent.getFilter();
              updateColumnsRestrictedByFilter(old,
                                              f);
          }
      }
focal_method.class_method_signature: DataSetDefColumnsFilterEditor.onFilterChangedEvent(@Observes FilterChangedEvent filterChangedEvent)
focal_method.full_signature:  void onFilterChangedEvent(@Observes FilterChangedEvent filterChangedEvent)
focal_method.identifier: onFilterChangedEvent
focal_method.invocations: checkNotNull equals getContext getOldFilter getFilter updateColumnsRestrictedByFilter
focal_method.parameters: (@Observes FilterChangedEvent filterChangedEvent)
focal_method.return: void
focal_method.signature: void onFilterChangedEvent(@Observes FilterChangedEvent filterChangedEvent)