@Test public void testGetDropZone() throws Exception { Optional<MultiPath> dropZone1 = tested.getDropZone(); assertTrue(dropZone1.isPresent()); when(canvas.getPanelBounds()).thenReturn(Optional.of(Bounds.build(0.0, 0.0, 2000.0, 1000.0))); Optional<MultiPath> dropZone2 = tested.getDropZone(); assertTrue(dropZone2.isPresent()); assertNotEquals(dropZone1, dropZone2); }
@Override public Optional<MultiPath> getDropZone() { this.getCanvas() .ifPresent(c -> c.getPanelBounds(). ifPresent(this::createDropZone)); return super.getDropZone(); }
CaseManagementDiagramShapeView extends CaseManagementShapeView { @Override public Optional<MultiPath> getDropZone() { this.getCanvas() .ifPresent(c -> c.getPanelBounds(). ifPresent(this::createDropZone)); return super.getDropZone(); } }
CaseManagementDiagramShapeView extends CaseManagementShapeView { @Override public Optional<MultiPath> getDropZone() { this.getCanvas() .ifPresent(c -> c.getPanelBounds(). ifPresent(this::createDropZone)); return super.getDropZone(); } CaseManagementDiagramShapeView(String name,
                                          SVGPrimitiveShape svgPrimitive,
                                          double width,
                                          double height,
                                          boolean resizable); }
CaseManagementDiagramShapeView extends CaseManagementShapeView { @Override public Optional<MultiPath> getDropZone() { this.getCanvas() .ifPresent(c -> c.getPanelBounds(). ifPresent(this::createDropZone)); return super.getDropZone(); } CaseManagementDiagramShapeView(String name,
                                          SVGPrimitiveShape svgPrimitive,
                                          double width,
                                          double height,
                                          boolean resizable); @Override Optional<MultiPath> getDropZone(); }
CaseManagementDiagramShapeView extends CaseManagementShapeView { @Override public Optional<MultiPath> getDropZone() { this.getCanvas() .ifPresent(c -> c.getPanelBounds(). ifPresent(this::createDropZone)); return super.getDropZone(); } CaseManagementDiagramShapeView(String name,
                                          SVGPrimitiveShape svgPrimitive,
                                          double width,
                                          double height,
                                          boolean resizable); @Override Optional<MultiPath> getDropZone();  }