use of org.kie.workbench.common.stunner.client.lienzo.wires.StunnerWiresHandlerFactory in project kie-wb-common by kiegroup.
the class CaseManagementCanvasViewTest method setup.
@Before
public void setup() {
this.view = new CaseManagementCanvasView(new WiresManagerFactoryImpl(new StunnerWiresControlFactory(), new StunnerWiresHandlerFactory(new EventSourceMock<CanvasControlPointDragStartEvent>(), new EventSourceMock<CanvasControlPointDragEndEvent>(), new EventSourceMock<CanvasControlPointDoubleClickEvent>())));
this.view.init();
}
use of org.kie.workbench.common.stunner.client.lienzo.wires.StunnerWiresHandlerFactory in project kie-wb-common by kiegroup.
the class WiresCanvasViewTest method setup.
@Before
public void setup() {
this.wiresManagerFactory = spy(new WiresManagerFactoryImpl(new StunnerWiresControlFactory(), new StunnerWiresHandlerFactory()));
this.canvas = new WiresCanvasView(this.wiresManagerFactory);
this.panel = new LienzoPanel(100, 100);
this.layer = new LienzoLayer();
this.canvas.init();
this.canvas.show(panel, 100, 100, layer);
}
Aggregations