@Test public void testDoDestroy() { control.bind(session); reset(editorControls); control.doDestroy(); verify(editorControls).setGridPanelSupplier(gridPanelSupplierArgumentCaptor.capture()); final Optional<Supplier<DMNGridPanel>> gridPanelSupplier = gridPanelSupplierArgumentCaptor.getValue(); assertFalse(gridPanelSupplier.isPresent()); }
@Override protected void doDestroy() { this.editorControls.setGridPanelSupplier(Optional.empty()); }
CellEditorControlImpl extends AbstractCanvasControl<AbstractCanvas> implements CellEditorControl { @Override protected void doDestroy() { this.editorControls.setGridPanelSupplier(Optional.empty()); } }
CellEditorControlImpl extends AbstractCanvasControl<AbstractCanvas> implements CellEditorControl { @Override protected void doDestroy() { this.editorControls.setGridPanelSupplier(Optional.empty()); } CellEditorControlImpl(); @Inject  CellEditorControlImpl(final CellEditorControls editorControls); }
CellEditorControlImpl extends AbstractCanvasControl<AbstractCanvas> implements CellEditorControl { @Override protected void doDestroy() { this.editorControls.setGridPanelSupplier(Optional.empty()); } CellEditorControlImpl(); @Inject  CellEditorControlImpl(final CellEditorControls editorControls); @Override void bind(final DMNSession session); @Override CellEditorControls getCellEditorControls(); }
CellEditorControlImpl extends AbstractCanvasControl<AbstractCanvas> implements CellEditorControl { @Override protected void doDestroy() { this.editorControls.setGridPanelSupplier(Optional.empty()); } CellEditorControlImpl(); @Inject  CellEditorControlImpl(final CellEditorControls editorControls); @Override void bind(final DMNSession session); @Override CellEditorControls getCellEditorControls();  }