ColumnTypeEditor implements IsWidget,
                                         org.dashbuilder.dataset.client.editor.ColumnTypeEditor { @Override public void isEditMode(final boolean isEdit) { columnType.isEditMode(isEdit); } @Inject  ColumnTypeEditor(final DropDownImageListEditor<ColumnType> columnType); @PostConstruct void init(); @Override Widget asWidget(); void addHelpContent(final String title,
                               final String content,
                               final Placement placement); @Override void setOriginalColumnType(final ColumnType columnType); @Override DropDownImageListEditor<ColumnType> columnType(); @Override void flush(); @Override void onPropertyChange(final String... paths); @Override void setValue(final DataColumnDef value); @Override void setDelegate(final EditorDelegate<DataColumnDef> delegate); @Override void isEditMode(final boolean isEdit);  }
@Test public void testEnableEditMode() { presenter.isEditMode(true); verify(columnType, times(1)).isEditMode(true); verify(columnType, times(0)).setHelpContent(anyString(), anyString(), any(Placement.class)); verify(columnType, times(0)).setImageSize(anyString(), anyString()); verify(columnType, times(0)).setEntries(any(Collection.class)); }
@Test public void testDisableEditMode() { presenter.isEditMode(false); verify(columnType, times(1)).isEditMode(false); verify(columnType, times(0)).setHelpContent(anyString(), anyString(), any(Placement.class)); verify(columnType, times(0)).setImageSize(anyString(), anyString()); verify(columnType, times(0)).setEntries(any(Collection.class)); }