use of org.kie.workbench.common.forms.jbpm.server.service.impl.BPMFinderServiceImpl in project kie-wb-common by kiegroup.
the class GetProcessModelsTest method init.
@Before
public void init() {
when(ioService.newDirectoryStream(any(), any())).thenAnswer(invocationOnMock -> Files.newDirectoryStream((Path) invocationOnMock.getArguments()[0], (DirectoryStream.Filter<Path>) invocationOnMock.getArguments()[1]));
when(ioService.newInputStream(any())).thenAnswer(invocationOnMock -> new FileInputStream(((Path) invocationOnMock.getArguments()[0]).toFile()));
bpmnFormModelGenerator = new BPMNFormModelGeneratorImpl(moduleService, classLoaderHelper);
finderService = new BPMFinderServiceImpl(ioService, moduleService, bpmnFormModelGenerator);
finderService.init();
}
Aggregations