ColumnListEditor implements IsWidget, org.dashbuilder.dataset.client.editor.ColumnListEditor { @Override public DataColumnDefEditor createEditorForTraversal() { return listEditor.createEditorForTraversal(); } @Inject  ColumnListEditor(final SyncBeanManager beanManager,
                            final DataColumnDefDriver dataColumnDefDriver,
                            final Event<ColumnsChangedEvent> columnsChangedEvent,
                            final View view); @PostConstruct void init(); @Override Widget asWidget(); @Override void setAcceptableValues(final List<DataColumnDef> acceptableValues); @Override void onValueRestricted(final String value); @Override void onValueUnRestricted(final String value); @Override void setProviderType(final DataSetProviderType type); void clear(); @Override DataColumnDefEditor createEditorForTraversal(); @Override String getPathElement(final DataColumnDefEditor subEditor); @Override void setEditorChain(final EditorChain<DataColumnDef, DataColumnDefEditor> chain); @Override void setDelegate(final EditorDelegate<List<DataColumnDef>> delegate); @Override void showErrors(final List<EditorError> errors); @Override void flush(); @Override void onPropertyChange(final String... paths); @Override void setValue(final List<DataColumnDef> value); public View view; }
@Test public void testCreateEditorForTraversal() { presenter.createEditorForTraversal(); verify(listEditor, times(1)).createEditorForTraversal(); verify(listEditor, times(0)).getPathElement(any(DataColumnDefEditor.class)); verify(listEditor, times(0)).setEditorChain(any(CompositeEditor.EditorChain.class)); verify(listEditor, times(0)).setDelegate(any(EditorDelegate.class)); verify(listEditor, times(0)).flush(); verify(listEditor, times(0)).onPropertyChange(anyString()); verify(listEditor, times(0)).setValue(any(List.class)); }