@Test public void testBind() { control.bind(session); verify(editorControls).setGridPanelSupplier(gridPanelSupplierArgumentCaptor.capture()); final Optional<Supplier<DMNGridPanel>> gridPanelSupplier = gridPanelSupplierArgumentCaptor.getValue(); assertTrue(gridPanelSupplier.isPresent()); assertEquals(gridPanel, gridPanelSupplier.get().get()); }
@Override public void bind(final DMNSession session) { this.editorControls.setGridPanelSupplier(Optional.of(session::getGridPanel)); }
CellEditorControlImpl extends AbstractCanvasControl<AbstractCanvas> implements CellEditorControl { @Override public void bind(final DMNSession session) { this.editorControls.setGridPanelSupplier(Optional.of(session::getGridPanel)); } }
CellEditorControlImpl extends AbstractCanvasControl<AbstractCanvas> implements CellEditorControl { @Override public void bind(final DMNSession session) { this.editorControls.setGridPanelSupplier(Optional.of(session::getGridPanel)); } CellEditorControlImpl(); @Inject  CellEditorControlImpl(final CellEditorControls editorControls); }
CellEditorControlImpl extends AbstractCanvasControl<AbstractCanvas> implements CellEditorControl { @Override public void bind(final DMNSession session) { this.editorControls.setGridPanelSupplier(Optional.of(session::getGridPanel)); } CellEditorControlImpl(); @Inject  CellEditorControlImpl(final CellEditorControls editorControls); @Override void bind(final DMNSession session); @Override CellEditorControls getCellEditorControls(); }
CellEditorControlImpl extends AbstractCanvasControl<AbstractCanvas> implements CellEditorControl { @Override public void bind(final DMNSession session) { this.editorControls.setGridPanelSupplier(Optional.of(session::getGridPanel)); } CellEditorControlImpl(); @Inject  CellEditorControlImpl(final CellEditorControls editorControls); @Override void bind(final DMNSession session); @Override CellEditorControls getCellEditorControls();  }