use of com.ait.lienzo.client.core.shape.wires.IControlHandleFactory in project kie-wb-common by kiegroup.
the class DecisionServiceSVGShapeViewTest method testShapeControlResizeHandles.
@Test
public void testShapeControlResizeHandles() {
final IControlHandleFactory controlHandleFactory = view.getPath().getControlHandleFactory();
final IControlHandleList controlHandles = controlHandleFactory.getControlHandles(Collections.singletonList(RESIZE)).get(RESIZE);
assertThat(controlHandles.size()).isGreaterThan(0);
assertThat(controlHandles).areExactly(1, new Condition<>(ch -> ch instanceof MoveDividerControlHandle, "Is a MoveDividerControlHandle"));
}
use of com.ait.lienzo.client.core.shape.wires.IControlHandleFactory in project kie-wb-common by kiegroup.
the class DecisionServiceSVGShapeViewTest method testShapeControlResizeHandlersWithList.
@Test
public void testShapeControlResizeHandlersWithList() {
final IControlHandleFactory controlHandleFactory = view.getPath().getControlHandleFactory();
final IControlHandleList controlHandles = controlHandleFactory.getControlHandles(RESIZE).get(RESIZE);
assertThat(controlHandles.size()).isGreaterThan(0);
assertThat(controlHandles).areExactly(1, new Condition<>(ch -> ch instanceof MoveDividerControlHandle, "Is a MoveDividerControlHandle"));
}
use of com.ait.lienzo.client.core.shape.wires.IControlHandleFactory in project kie-wb-common by kiegroup.
the class DecisionServiceSVGShapeViewTest method testShapeControlHandleFactory.
@Test
public void testShapeControlHandleFactory() {
final IControlHandleFactory controlHandleFactory = view.getPath().getControlHandleFactory();
assertThat(controlHandleFactory).isInstanceOf(DecisionServiceSVGShapeView.DecisionServiceControlHandleFactory.class);
}
use of com.ait.lienzo.client.core.shape.wires.IControlHandleFactory in project kie-wb-common by kiegroup.
the class DecisionServiceSVGShapeViewTest method getMoveDividerControlHandle.
private MoveDividerControlHandle getMoveDividerControlHandle() {
final IControlHandleFactory controlHandleFactory = view.getPath().getControlHandleFactory();
final IControlHandleList controlHandles = controlHandleFactory.getControlHandles(RESIZE).get(RESIZE);
return StreamSupport.stream(controlHandles.spliterator(), false).filter(ch -> ch instanceof MoveDividerControlHandle).map(ch -> (MoveDividerControlHandle) ch).findFirst().get();
}
Aggregations