@Test public void testInit() { presenter.init(); verify(pushMaxSize, times(1)).addHelpContent(anyString(), anyString(), any(Placement.class)); verify(view, times(1)).init(any(DataSetDefCacheAttributesEditorView.ViewCallback.class)); verify(view, times(1)).init(anyString(), anyString(), any(IsWidget.class), any(ValueBoxEditor.View.class)); verify(view, times(0)).setRange(anyDouble(), anyDouble()); verify(view, times(0)).setValue(anyDouble()); verify(view, times(0)).setEnabled(anyBoolean()); }
@PostConstruct public void init() { view.init(viewCallback); view.init(DataSetEditorConstants.INSTANCE.clientCache(), DataSetEditorConstants.INSTANCE.bytes(), pushEnabled.asWidget(), pushMaxSize.view); pushMaxSize.addHelpContent(DataSetEditorConstants.INSTANCE.attributeMaxBytes(), DataSetEditorConstants.INSTANCE.attributeMaxBytes_description(), Placement.BOTTOM); }
DataSetDefClientCacheAttributesEditor implements IsWidget,
                                                              org.dashbuilder.dataset.client.editor.DataSetDefClientCacheAttributesEditor { @PostConstruct public void init() { view.init(viewCallback); view.init(DataSetEditorConstants.INSTANCE.clientCache(), DataSetEditorConstants.INSTANCE.bytes(), pushEnabled.asWidget(), pushMaxSize.view); pushMaxSize.addHelpContent(DataSetEditorConstants.INSTANCE.attributeMaxBytes(), DataSetEditorConstants.INSTANCE.attributeMaxBytes_description(), Placement.BOTTOM); } }
DataSetDefClientCacheAttributesEditor implements IsWidget,
                                                              org.dashbuilder.dataset.client.editor.DataSetDefClientCacheAttributesEditor { @PostConstruct public void init() { view.init(viewCallback); view.init(DataSetEditorConstants.INSTANCE.clientCache(), DataSetEditorConstants.INSTANCE.bytes(), pushEnabled.asWidget(), pushMaxSize.view); pushMaxSize.addHelpContent(DataSetEditorConstants.INSTANCE.attributeMaxBytes(), DataSetEditorConstants.INSTANCE.attributeMaxBytes_description(), Placement.BOTTOM); } @Inject  DataSetDefClientCacheAttributesEditor(final ToggleSwitchEditor pushEnabled,
                                                 final ValueBoxEditor<Integer> pushMaxSize,
                                                 final DataSetDefCacheAttributesEditorView view); }
DataSetDefClientCacheAttributesEditor implements IsWidget,
                                                              org.dashbuilder.dataset.client.editor.DataSetDefClientCacheAttributesEditor { @PostConstruct public void init() { view.init(viewCallback); view.init(DataSetEditorConstants.INSTANCE.clientCache(), DataSetEditorConstants.INSTANCE.bytes(), pushEnabled.asWidget(), pushMaxSize.view); pushMaxSize.addHelpContent(DataSetEditorConstants.INSTANCE.attributeMaxBytes(), DataSetEditorConstants.INSTANCE.attributeMaxBytes_description(), Placement.BOTTOM); } @Inject  DataSetDefClientCacheAttributesEditor(final ToggleSwitchEditor pushEnabled,
                                                 final ValueBoxEditor<Integer> pushMaxSize,
                                                 final DataSetDefCacheAttributesEditorView view); @PostConstruct void init(); void setRange(final Double min,
                         final Double max); @Override Widget asWidget(); @Override ToggleSwitchEditor pushEnabled(); @Override ValueBoxEditor<Integer> pushMaxSize(); @Override void flush(); @Override void onPropertyChange(final String... paths); @Override void setValue(final DataSetDef value); @Override void setDelegate(final EditorDelegate<DataSetDef> delegate); }
DataSetDefClientCacheAttributesEditor implements IsWidget,
                                                              org.dashbuilder.dataset.client.editor.DataSetDefClientCacheAttributesEditor { @PostConstruct public void init() { view.init(viewCallback); view.init(DataSetEditorConstants.INSTANCE.clientCache(), DataSetEditorConstants.INSTANCE.bytes(), pushEnabled.asWidget(), pushMaxSize.view); pushMaxSize.addHelpContent(DataSetEditorConstants.INSTANCE.attributeMaxBytes(), DataSetEditorConstants.INSTANCE.attributeMaxBytes_description(), Placement.BOTTOM); } @Inject  DataSetDefClientCacheAttributesEditor(final ToggleSwitchEditor pushEnabled,
                                                 final ValueBoxEditor<Integer> pushMaxSize,
                                                 final DataSetDefCacheAttributesEditorView view); @PostConstruct void init(); void setRange(final Double min,
                         final Double max); @Override Widget asWidget(); @Override ToggleSwitchEditor pushEnabled(); @Override ValueBoxEditor<Integer> pushMaxSize(); @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; }