DataSetEditor implements IsWidget,
                                                                     DataSetDefEditor<T> { @Override public void setAcceptableValues(final List<DataColumnDef> acceptableValues) { columnsAndFilterEditor.setAcceptableValues(acceptableValues); } @Inject  DataSetEditor(final DataSetDefBasicAttributesEditor basicAttributesEditor,
                         final IsWidget providerAttributesEditorView,
                         final DataSetDefColumnsFilterEditor columnsAndFilterEditor,
                         final DataSetDefPreviewTable previewTable,
                         final DataSetDefBackendCacheAttributesEditor backendCacheAttributesEditor,
                         final DataSetDefClientCacheAttributesEditor clientCacheAttributesEditor,
                         final DataSetDefRefreshAttributesEditor refreshEditor,
                         final DataSetClientServices clientServices,
                         final LoadingBox loadingBox,
                         final Event<ErrorEvent> errorEvent,
                         final Event<TabChangedEvent> tabChangedEvent,
                         final View view); void init(); @Override Widget asWidget(); void showConfigurationTab(); void showPreviewTab(); void showAdvancedTab(); @Override void setAcceptableValues(final List<DataColumnDef> acceptableValues); @Override void flush(); @Override void onPropertyChange(final String... paths); @Override void setValue(final T value); @Override void setDelegate(final EditorDelegate<T> delegate); @Override org.dashbuilder.dataset.client.editor.DataSetDefBasicAttributesEditor basicAttributesEditor(); @Override org.dashbuilder.dataset.client.editor.DataSetDefColumnsFilterEditor columnsAndFilterEditor(); @Override DataSetDefBackendCacheAttributesEditor backendCacheEditor(); @Override org.dashbuilder.dataset.client.editor.DataSetDefClientCacheAttributesEditor clientCacheEditor(); @Override org.dashbuilder.dataset.client.editor.DataSetDefRefreshAttributesEditor refreshEditor(); static final String TAB_CONFIGURATION; static final String TAB_PREVIEW; static final String TAB_ADVANCED; public View view; }
@Test public void testSetAcceptableValues() { List<DataColumnDef> acceptableValues = mock(List.class); presenter.setAcceptableValues(acceptableValues); verify(columnsAndFilterEditor, times(1)).setAcceptableValues(acceptableValues); assertViewNotUsed(); }