use of org.kie.workbench.common.stunner.svg.client.shape.view.SVGPrimitiveShape in project kie-wb-common by kiegroup.
the class SVGChildViewHandlerTest method testAddChildScalable.
@Test
public void testAddChildScalable() {
primitiveShape = new SVGPrimitiveShape(rectangle, true, null);
tested.addChild(primitiveShape);
verify(shapeView, times(1)).addScalableChild(eq(rectangle));
assertEquals(1, tested.getChildren().size());
assertEquals(primitiveShape, tested.getChildren().iterator().next());
}
use of org.kie.workbench.common.stunner.svg.client.shape.view.SVGPrimitiveShape in project kie-wb-common by kiegroup.
the class SVGChildViewHandlerTest method testAddChildLayout.
@Test
public void testAddChildLayout() {
primitiveShape = new SVGPrimitiveShape(rectangle, false, LayoutContainer.Layout.BOTTOM);
tested.addChild(primitiveShape);
verify(shapeView, times(1)).addChild(eq(rectangle), eq(LayoutContainer.Layout.BOTTOM));
assertEquals(1, tested.getChildren().size());
assertEquals(primitiveShape, tested.getChildren().iterator().next());
}
Aggregations