DataSetDefBackendCacheAttributesEditor implements IsWidget,
                                                               org.dashbuilder.dataset.client.editor.DataSetDefBackendCacheAttributesEditor { public void setRange(final Double min, final Double max) { view.setRange(min, max); } @Inject  DataSetDefBackendCacheAttributesEditor(final ToggleSwitchEditor cacheEnabled,
                                                  final ValueBoxEditor<Integer> cacheMaxRows,
                                                  final DataSetDefCacheAttributesEditorView view); @PostConstruct void init(); void setRange(final Double min,
                         final Double max); @Override Widget asWidget(); @Override ToggleSwitchEditor cacheEnabled(); @Override ValueBoxEditor<Integer> cacheMaxRows(); @Override void flush(); @Override void onPropertyChange(final String... paths); @Override void setValue(final DataSetDef value); @Override void setDelegate(final EditorDelegate<DataSetDef> delegate); public DataSetDefCacheAttributesEditorView view; }
@Test public void testSetRange() { presenter.setRange(1d, 2d); verify(view, times(1)).setRange(1d, 2d); verify(view, times(0)).init(anyString(), anyString(), any(IsWidget.class), any(ValueBoxEditor.View.class)); verify(view, times(0)).init(any(DataSetDefCacheAttributesEditorView.ViewCallback.class)); verify(view, times(0)).setValue(anyDouble()); verify(view, times(0)).setEnabled(anyBoolean()); }