use of org.kie.workbench.common.stunner.svg.client.shape.SVGShape in project kie-wb-common by kiegroup.
the class SVGShapeFactoryTest method testSVGShapeDefBuilder.
@Test
public void testSVGShapeDefBuilder() {
doAnswer(invocationOnMock -> viewFactory).when(tested).getViewFactory(eq(svgShapeDef));
final SVGShape shape = tested.newShape(definition, svgShapeDef);
assertNotNull(shape);
assertTrue(shape instanceof SVGShapeImpl);
assertEquals(shapeView, shape.getShapeView());
}
use of org.kie.workbench.common.stunner.svg.client.shape.SVGShape in project kie-wb-common by kiegroup.
the class SVGShapeFactoryTest method testSVGMutableShapeDefBuilder.
@Test
public void testSVGMutableShapeDefBuilder() {
doAnswer(invocationOnMock -> viewFactory).when(tested).getViewFactory(eq(svgMutableShapeDef));
final SVGShape shape = tested.newShape(definition, svgMutableShapeDef);
assertNotNull(shape);
assertTrue(shape instanceof SVGMutableShapeImpl);
assertEquals(shapeViewImpl, shape.getShapeView());
}
Aggregations