DataColumnDefEditor implements IsWidget, org.dashbuilder.dataset.client.editor.DataColumnDefEditor { @Override public void removeFromParent() { id.asWidget().removeFromParent(); } @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 testRemoveFromParent() { presenter.removeFromParent(); verify(view, times(0)).init(presenter); verify(view, times(0)).initWidgets(any(ValueBoxEditor.View.class), any(IsWidget.class)); verify(idWidget, times(1)).removeFromParent(); }