java.lang.NoClassDefFoundError: org/camunda/bpm/engine/variable/VariableMap

47 Views Asked by At

I am trying to test a JavaDelegate and need to Mock the DelegateExecution class from Camunda. I am using below method to mock the input :

DelegateExecution execution = CamundaMockito.delegateExecutionFake();

but this returns following error stack :

java.lang.NoClassDefFoundError: org/camunda/bpm/engine/variable/VariableMap

Caused by: java.lang.ClassNotFoundException: org.camunda.bpm.engine.variable.VariableMap

I m using maven to build the project

1

There are 1 best solutions below

0
Jan Rohwer On BEST ANSWER

The class VariableMap is part of the following maven artifact:

<groupId>org.camunda.commons</groupId>
<artifactId>camunda-commons-typed-values</artifactId>

So if you include that in the correct version in your maven pom, this class should be found.