use of org.kie.workbench.common.stunner.core.client.canvas.CanvasSettings in project kie-wb-common by kiegroup.
the class LienzoCanvasTest method testDestroy.
@Test
public void testDestroy() {
CanvasPanel panel = mock(CanvasPanel.class);
CanvasSettings settings = mock(CanvasSettings.class);
ViewEventHandlerManager eventHandler = mock(ViewEventHandlerManager.class);
tested.initialize(panel, settings, eventHandler);
tested.destroy();
verify(eventHandler, times(1)).destroy();
verify(view, times(1)).destroy();
}
Aggregations