use of org.kie.workbench.common.stunner.bpmn.resource.BPMNDefinitionSetResourceType in project kie-wb-common by kiegroup.
the class IntegrationServiceImplTest method setUp.
@Before
@SuppressWarnings("unchecked")
public void setUp() {
when(path.getFileName()).thenReturn(FILE_NAME);
when(path.toURI()).thenReturn(PATH_URI);
when(path.toString()).thenReturn(PATH_URI);
when(optionFactory.makeCommentedOption(COMMIT_MESSAGE)).thenReturn(commentedOption);
when(factoryManager.registry()).thenReturn(factoryRegistry);
resourceType = new BPMNDefinitionSetResourceType(mock(org.guvnor.common.services.project.categories.Process.class));
defSetId = resourceType.getDefinitionSetType().getName();
when(definitionService.getResourceType()).thenReturn(resourceType);
when(definitionService.getDiagramMarshaller()).thenReturn(diagramMarshaller);
service = new IntegrationServiceImpl(diagramService, definitionService, factoryManager, moduleService, overviewLoader, ioService, optionFactory);
}
Aggregations