@Test public void testBuild_subprocess() throws Exception { final SVGShapeView shapeView = tested.build("subprocess", new SVGPrimitiveShape(new Rectangle(0d, 0d)), 10d, 10d, false); assertTrue(shapeView instanceof CaseManagementShapeView); }
@Override public SVGShapeView build(final String name, final SVGPrimitiveShape primitiveShape, final double width, final double height, final boolean resizable) { switch (name) { case "stage": return new CaseManagementStageShapeView(name, primitiveShape, width, height, false); case "rectangle": return new CaseManagementDiagramShapeView(name, primitiveShape, width, height, false); default: return new CaseManagementShapeView(name, primitiveShape, width, height, false); } }
CaseManagementSVGViewBuilder implements SVGShapeViewBuilder { @Override public SVGShapeView build(final String name, final SVGPrimitiveShape primitiveShape, final double width, final double height, final boolean resizable) { switch (name) { case "stage": return new CaseManagementStageShapeView(name, primitiveShape, width, height, false); case "rectangle": return new CaseManagementDiagramShapeView(name, primitiveShape, width, height, false); default: return new CaseManagementShapeView(name, primitiveShape, width, height, false); } } }
CaseManagementSVGViewBuilder implements SVGShapeViewBuilder { @Override public SVGShapeView build(final String name, final SVGPrimitiveShape primitiveShape, final double width, final double height, final boolean resizable) { switch (name) { case "stage": return new CaseManagementStageShapeView(name, primitiveShape, width, height, false); case "rectangle": return new CaseManagementDiagramShapeView(name, primitiveShape, width, height, false); default: return new CaseManagementShapeView(name, primitiveShape, width, height, false); } }  }
CaseManagementSVGViewBuilder implements SVGShapeViewBuilder { @Override public SVGShapeView build(final String name, final SVGPrimitiveShape primitiveShape, final double width, final double height, final boolean resizable) { switch (name) { case "stage": return new CaseManagementStageShapeView(name, primitiveShape, width, height, false); case "rectangle": return new CaseManagementDiagramShapeView(name, primitiveShape, width, height, false); default: return new CaseManagementShapeView(name, primitiveShape, width, height, false); } }  @Override SVGShapeView build(final String name,
                              final SVGPrimitiveShape primitiveShape,
                              final double width,
                              final double height,
                              final boolean resizable); }
CaseManagementSVGViewBuilder implements SVGShapeViewBuilder { @Override public SVGShapeView build(final String name, final SVGPrimitiveShape primitiveShape, final double width, final double height, final boolean resizable) { switch (name) { case "stage": return new CaseManagementStageShapeView(name, primitiveShape, width, height, false); case "rectangle": return new CaseManagementDiagramShapeView(name, primitiveShape, width, height, false); default: return new CaseManagementShapeView(name, primitiveShape, width, height, false); } }  @Override SVGShapeView build(final String name,
                              final SVGPrimitiveShape primitiveShape,
                              final double width,
                              final double height,
                              final boolean resizable);  }