Search in sources :

Example 6 with WiresConnectorControl

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

the class WiresConnectorViewTest method testShowControlPoints.

@Test
public void testShowControlPoints() {
    final WiresConnectorControl connectorControl = mock(WiresConnectorControl.class);
    tested.setControl(connectorControl);
    final Object wcv = tested.showControlPoints(HasControlPoints.ControlPointType.POINTS);
    assertEquals(wcv, tested);
    verify(connectorControl, times(1)).showControlPoints();
    verify(connectorControl, never()).hideControlPoints();
}
Also used : WiresConnectorControl(com.ait.lienzo.client.core.shape.wires.handlers.WiresConnectorControl) Test(org.junit.Test)

Aggregations

WiresConnectorControl (com.ait.lienzo.client.core.shape.wires.handlers.WiresConnectorControl)6 Test (org.junit.Test)5 WiresConnector (com.ait.lienzo.client.core.shape.wires.WiresConnector)1 WiresShape (com.ait.lienzo.client.core.shape.wires.WiresShape)1 WiresConnectionControl (com.ait.lienzo.client.core.shape.wires.handlers.WiresConnectionControl)1 WiresShapeControl (com.ait.lienzo.client.core.shape.wires.handlers.WiresShapeControl)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 WiresConnectorView (org.kie.workbench.common.stunner.client.lienzo.shape.view.wires.WiresConnectorView)1