Search in sources :

Example 1 with WiresShapeControl

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

the class StunnerWiresControlFactoryTest method testNewShapeControl.

@Test
public void testNewShapeControl() {
    final WiresShapeControl wiresShapeControl = tested.newShapeControl(wiresShape, wiresManager);
    assertNotNull(wiresShapeControl);
    assertTrue(wiresShapeControl instanceof StunnerWiresShapeControl);
}
Also used : WiresShapeControl(com.ait.lienzo.client.core.shape.wires.handlers.WiresShapeControl) Test(org.junit.Test)

Example 2 with WiresShapeControl

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

the class CaseManagementControlFactoryTest method testControls.

@Test
public void testControls() {
    WiresShapeControl shapeControl = factory.newShapeControl(shape, wiresManager);
    assertNotNull(shapeControl);
    assertTrue(shapeControl instanceof CaseManagementShapeControl);
    WiresConnectorControl connectorControl = factory.newConnectorControl(wiresConnector, wiresManager);
    assertNotNull(connectorControl);
    assertTrue(connectorControl instanceof WiresConnectorControlImpl);
    WiresConnectionControl connectionControl = factory.newConnectionControl(wiresConnector, true, wiresManager);
    assertNotNull(connectionControl);
    assertTrue(connectionControl instanceof WiresConnectionControlImpl);
}
Also used : WiresConnectorControlImpl(com.ait.lienzo.client.core.shape.wires.handlers.impl.WiresConnectorControlImpl) WiresShapeControl(com.ait.lienzo.client.core.shape.wires.handlers.WiresShapeControl) WiresConnectionControlImpl(com.ait.lienzo.client.core.shape.wires.handlers.impl.WiresConnectionControlImpl) WiresConnectorControl(com.ait.lienzo.client.core.shape.wires.handlers.WiresConnectorControl) WiresConnectionControl(com.ait.lienzo.client.core.shape.wires.handlers.WiresConnectionControl) Test(org.junit.Test)

Aggregations

WiresShapeControl (com.ait.lienzo.client.core.shape.wires.handlers.WiresShapeControl)2 Test (org.junit.Test)2 WiresConnectionControl (com.ait.lienzo.client.core.shape.wires.handlers.WiresConnectionControl)1 WiresConnectorControl (com.ait.lienzo.client.core.shape.wires.handlers.WiresConnectorControl)1 WiresConnectionControlImpl (com.ait.lienzo.client.core.shape.wires.handlers.impl.WiresConnectionControlImpl)1 WiresConnectorControlImpl (com.ait.lienzo.client.core.shape.wires.handlers.impl.WiresConnectorControlImpl)1