I have camunda tests which make use of TestCoverageProcessEngineRuleBuilder to create ProcessEngineRule. When i create a process instance using this rule, I am unable to mock java delegates using DelegateExpressions.autoMock from the camunda-bpm-mockito library.
public class HelloWorlProcessTest {
private static final String PROCESS_DEFINITION_KEY = "hello_v1";
Map processVariables = new HashMap<String, Object>();
@Autowired
ProcessEngine processEngine;
@Rule
@ClassRule
public static ProcessEngineRule rule;
@PostConstruct
void initRule() {
rule = TestCoverageProcessEngineRuleBuilder.create(processEngine).withDetailedCoverageLogging().build();
}
Is there a possibility to add test coverage to unit tests?
I currently have camunda unit tests which extend AbstractProcessEngineRuleTest (from camunda bpm spring boot starter) and integration tests with TestCoverageProcessEngineRuleBuilder.