Search in sources :

Example 1 with CaseHelper

use of org.kie.workbench.common.stunner.bpmn.project.client.handlers.util.CaseHelper in project kie-wb-common by kiegroup.

the class CaseDefinitionNewResourceHandlerTest method setUp.

@Before
public void setUp() throws Exception {
    when(translationService.getDefinitionDescription(CaseDefinitionNewResourceHandler.CASE_DEFINITION)).thenReturn(DESCRIPTION);
    when(projectContext.getActiveWorkspaceProject()).thenReturn(Optional.of(workspaceProject));
    when(workspaceProject.getRootPath()).thenReturn(rootPath);
    caseHelper = new CaseHelper(new CallerMock<>(bpmnDiagramService), projectContext);
    tested = new CaseDefinitionNewResourceHandler(definitionManager, projectDiagramService, indicatorView, projectDiagramResourceType, translationService, caseHelper);
}
Also used : CaseHelper(org.kie.workbench.common.stunner.bpmn.project.client.handlers.util.CaseHelper) CallerMock(org.uberfire.mocks.CallerMock) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 CaseHelper (org.kie.workbench.common.stunner.bpmn.project.client.handlers.util.CaseHelper)1 CallerMock (org.uberfire.mocks.CallerMock)1