Search in sources :

Example 1 with ILayoutHandler

use of com.ait.lienzo.client.core.shape.wires.ILayoutHandler in project kie-wb-common by kiegroup.

the class CaseManagementContainmentAcceptorControlImplTest method checkInterceptingLayoutHandlerRemove.

@Test
public void checkInterceptingLayoutHandlerRemove() {
    control.enable(canvasHandler);
    final WiresShape parentShape = makeWiresShape();
    final WiresShape childShape = makeWiresShape();
    final ILayoutHandler layoutHandler = getILayoutHandler(parentShape, childShape);
    layoutHandler.remove(childShape, parentShape);
    assertTrue(parentShape.getLayoutHandler() instanceof ILayoutHandler.DefaultLayoutHandler);
}
Also used : ILayoutHandler(com.ait.lienzo.client.core.shape.wires.ILayoutHandler) WiresShape(com.ait.lienzo.client.core.shape.wires.WiresShape) Test(org.junit.Test)

Aggregations

ILayoutHandler (com.ait.lienzo.client.core.shape.wires.ILayoutHandler)1 WiresShape (com.ait.lienzo.client.core.shape.wires.WiresShape)1 Test (org.junit.Test)1