DataColumnDefEditor implements IsWidget, org.dashbuilder.dataset.client.editor.DataColumnDefEditor { @PostConstruct public void init() { view.init(this); view.initWidgets(id.view, columnType.asWidget()); } @Inject  DataColumnDefEditor(final ValueBoxEditor<String> id,
                               final ColumnTypeEditor columnType,
                               final View view); @PostConstruct void init(); @Override Widget asWidget(); @Override void removeFromParent(); @Override void setProviderType(final DataSetProviderType type); @Override void setOriginalColumnType(final ColumnType columnType); @Override void isEditMode(final boolean isEdit); @Override ValueBoxEditor<String> id(); @Override org.dashbuilder.dataset.client.editor.ColumnTypeEditor columnType(); public View view; }
@Test public void testInit() { presenter.init(); verify(view, times(1)).init(presenter); verify(view, times(1)).initWidgets(any(ValueBoxEditor.View.class), any(IsWidget.class)); verify(columnType, times(0)).addHelpContent(anyString(), anyString(), any(Placement.class)); }