Search in sources :

Example 1 with ConditionEditorFieldDefinition

use of org.kie.workbench.common.stunner.bpmn.forms.model.ConditionEditorFieldDefinition in project kie-wb-common by kiegroup.

the class ConditionEditorFieldEditorRendererTest method testInit.

@Test
public void testInit() {
    FormRenderingContext context = mock(FormRenderingContext.class);
    ConditionEditorFieldDefinition fieldDefinition = mock(ConditionEditorFieldDefinition.class);
    ClientSession session = mock(ClientSession.class);
    when(sessionManager.getCurrentSession()).thenReturn(session);
    renderer.init(context, fieldDefinition);
    verify(widget).init(session);
}
Also used : ConditionEditorFieldDefinition(org.kie.workbench.common.stunner.bpmn.forms.model.ConditionEditorFieldDefinition) ClientSession(org.kie.workbench.common.stunner.core.client.session.ClientSession) FormRenderingContext(org.kie.workbench.common.forms.dynamic.service.shared.FormRenderingContext) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 FormRenderingContext (org.kie.workbench.common.forms.dynamic.service.shared.FormRenderingContext)1 ConditionEditorFieldDefinition (org.kie.workbench.common.stunner.bpmn.forms.model.ConditionEditorFieldDefinition)1 ClientSession (org.kie.workbench.common.stunner.core.client.session.ClientSession)1