use of org.kie.workbench.common.stunner.svg.client.shape.impl.SVGShapeImpl 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());
}
Aggregations