Search in sources :

Example 1 with SVGShapeImpl

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());
}
Also used : SVGShape(org.kie.workbench.common.stunner.svg.client.shape.SVGShape) SVGShapeImpl(org.kie.workbench.common.stunner.svg.client.shape.impl.SVGShapeImpl) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 SVGShape (org.kie.workbench.common.stunner.svg.client.shape.SVGShape)1 SVGShapeImpl (org.kie.workbench.common.stunner.svg.client.shape.impl.SVGShapeImpl)1