всем привет!
Есть приложение Spring Boot с Camunda Embedded Engine v 7.15. Хочу подключить библиотеку Process Test Covergage (GitHub - camunda-community-hub/camunda-process-test-coverage: Community Extension Helper library to visualize which parts of a BPMN process have been covered by a process test.).
Обычно подключаю его вот таким плагином:
@Component
/* Нужно для работы Process Test Coverage */
@Order(Ordering.DEFAULT_ORDER + 1)
public class ProcessEngineConfigPlugin extends AbstractCamundaConfiguration {
@Override
public void preInit(SpringProcessEngineConfiguration processEngineConfiguration) {
ProcessCoverageConfigurator.initializeProcessCoverageExtensions(processEngineConfiguration);
super.preInit(processEngineConfiguration);
}
}
Класс теста:
@SpringBootTest(classes = { RisApp.class })
@RunWith(SpringRunner.class)
@Deployment(resources = {“vacation.bpmn”})
public class WorkflowTest extends AbstractProcessEngineRuleTest {@Autowired
public RuntimeService runtimeService;@Autowired
public ProcessEngine processEngine;@Rule
@ClassRule
public static ProcessEngineRule rule;public WorkflowTest() {
}/* Нужно для работы Process Test Coverage */
@PostConstruct
void initRule() {
rule = TestCoverageProcessEngineRuleBuilder.create(processEngine).build();
}@Test
@RequiredHistoryLevel(ProcessEngineConfiguration.HISTORY_NONE)
public void shouldExecuteHappyPath() {
// тело метода
}
}
После подключения тест перестает работать, валится вот с таким Exception:
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'camundaIntegrationDeterminator': Unsatisfied dependency expressed through field 'processEngine'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'processEngineFactoryBean': FactoryBean threw exception on object creation; nested exception is java.lang.UnsupportedOperationException
Помогите, пожалуйста! Бьюст уже вторые сутки не могу понять в чем дело