I wanted to test the Process.bpmn under Junit for which i had refer Testing | docs.camunda.org
Here is the bpmn which i wanted to test
At the starts it is an embedded task which accepts a business
key and a File.
@Shoeb I think you need to add camunda.cfg.xml file in /src/test/resources folder.
The ProcessEngine and the services will be made available to the test class through the getters of the processEngineRule. The processEngine will be initialized by default with the camunda.cfg.xml resource on the classpath.
ProcessEngineRule will look for the default configuration file on the classpath. Process engines are statically cached over multiple unit tests when using the same configuration resource.
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘processEngineConfiguration’ defined in class path resource [camunda.cfg.xml]: Cannot create inner bean ‘org.camunda.connect.plugin.impl.ConnectProcessEnginePlugin#3fa57aa8’ of type [org.camunda.connect.plugin.impl.ConnectProcessEnginePlugin] while setting bean property ‘processEnginePlugins’ with key [0]; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.camunda.connect.plugin.impl.ConnectProcessEnginePlugin] for bean with name ‘org.camunda.connect.plugin.impl.ConnectProcessEnginePlugin#3fa57aa8’ defined in class path resource [camunda.cfg.xml]; nested exception is java.lang.ClassNotFoundException: org.camunda.connect.plugin.impl.ConnectProcessEnginePlugin
@Shoeb, Are you using ConnectProcessEnginePlugin? or added this dependency in classpath? If you’re using you need to register those plugins part of the process engine configuration, otherwise you can remove from classpath.
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'processEngineConfiguration' defined in class path resource [camunda.cfg.xml]: Cannot create inner bean 'org.camunda.connect.plugin.impl.ConnectProcessEnginePlugin#11bd0f3b' of type [org.camunda.connect.plugin.impl.ConnectProcessEnginePlugin] while setting bean property 'processEnginePlugins' with key [0]; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.camunda.connect.plugin.impl.ConnectProcessEnginePlugin] for bean with name 'org.camunda.connect.plugin.impl.ConnectProcessEnginePlugin#11bd0f3b' defined in class path resource [camunda.cfg.xml]; nested exception is java.lang.ClassNotFoundException: org.camunda.connect.plugin.impl.ConnectProcessEnginePlugin
Could you please create a new post for your use case, as it seems to not be relevant to the initial issue in original post.
I tried the example with 7.15.0 and it works for me, so please provide what steps did you perform, an example of your project uploaded to github will be helpful to understand better the issue.