Hi everyone,
Please, help a fella here.
I wish to run my tests against my delegate code in Camunda.
I cannot manage to have access to my local LDAP server through the testing phase.
My code works well when I am playing with camunda, but the testing seems to be a whole new game, quite enjoyable.
Dependencies I use:
<version.junit>5.4.0</version.junit>
<version.mockito>2.24.5</version.mockito>
<version.bpm-assert>8.0.0</version.bpm-assert>
<version.assertj>3.16.1</version.assertj>
<version.mockito>3.8.0</version.mockito>
<version.powermock>2.0.0</version.powermock>
<version.camunda.extension>0.4.0</version.camunda.extension>
<version.springframework>2.4.3</version.springframework>
My settings:
- Create a camunda.cfg.xml file for the configuration of the process engine
- Set the engineRule with
@Rule
@ClassRule
public static ProcessEngineRule engineRule = TestCoverageProcessEngineRuleBuilder
.create()
.build();
When I try to include the LdapIdentityPlugin, the error is produced
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'processEngineConfiguration' defined in class path resource [camunda.cfg.xml]: Cannot resolve reference to bean 'ldapIdentityProviderPlugin' while setting bean property 'processEnginePlugins' with key [0]; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.camunda.bpm.identity.impl.ldap.plugin.LdapIdentityProviderPlugin] for bean with name 'ldapIdentityProviderPlugin' defined in class path resource [camunda.cfg.xml]; nested exception is java.lang.ClassNotFoundException: org.camunda.bpm.identity.impl.ldap.plugin.LdapIdentityProviderPlugin
The cfg.xml file
camunda.cfg.xml (1.7 KB)
Thanks for your time and consideration.
Cheers