use of org.kie.workbench.common.stunner.core.client.canvas.event.selection.DomainObjectSelectionEvent in project kie-wb-common by kiegroup.
the class FormsCanvasSessionHandlerTest method testOnDomainObjectSelectionEventSameSession.
@Test
public void testOnDomainObjectSelectionEventSameSession() {
handler.bind(session);
domainObjectSelectionEvent = new DomainObjectSelectionEvent(abstractCanvasHandler, domainObject);
handler.onDomainObjectSelectionEvent(domainObjectSelectionEvent);
verify(formRenderer).render(anyString(), eq(domainObject), Mockito.<Command>any());
}
use of org.kie.workbench.common.stunner.core.client.canvas.event.selection.DomainObjectSelectionEvent in project kie-wb-common by kiegroup.
the class FormsCanvasSessionHandlerTest method testOnDomainObjectSelectionEventDifferentSession.
@Test
public void testOnDomainObjectSelectionEventDifferentSession() {
handler.bind(mock(EditorSession.class));
domainObjectSelectionEvent = new DomainObjectSelectionEvent(abstractCanvasHandler, domainObject);
handler.onDomainObjectSelectionEvent(domainObjectSelectionEvent);
verify(formRenderer, never()).render(anyString(), any(Element.class), Mockito.<Command>any());
}
Aggregations