Hi there,
can u please help me with creating of Junit test for Camunda 7.5 version? I have created a new simple Junit test like this:
public class HandleSaleOrder {
@Rule
public ProcessEngineRule engineRule = new ProcessEngineRule();
@Test
@Deployment(resources = { "test.bpmn" })
public void testTerminationOrder() {
final ProcessInstance instance = runtimeService().startProcessInstanceByKey("test");
assertNotNull(instance);
}
}
And I have got this error:
Assume.assumeTrue("ignored because the current history level is too low", hasRequiredHistoryLevel);
which u can find in ProcessEngineRule class. I have tried to put an annotation :
@RequiredHistoryLevel(ProcessEngineConfiguration.HISTORY_ACTIVITY)
In camunda.cfg.xml I have this level:
<property name="history" value="full" />
Also I have tried to change value of history to “Audit” or “None” , nothing happened. Still the same error isssue and Junit test failed.
Can u please give me a hint how to repaire it?
Thanks for help.
BR
Lukas P.