Skip to content

Example project to reproduce a NPE encountered with the ProcessCoverageInMemProcessEngineConfiguration and link events in the camunda BPMN process.

Notifications You must be signed in to change notification settings

zene22/camunda_npe_problem_link_events

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

camunda engine unit test template to reproduce a problem

This git repository contains a simple example of how to reproduce the problem in "NPE with Process Test Coverage and Link Events" in Camunda forum

The project contains the following files:

src/
└── test
    ├── java
    │   └── org
    │       └── camunda
    │           └── bpm
    │               └── unittest
    │                   └── SimpleTestCase.java   (1)
    └── resources
        ├── camunda.cfg.xml                       (2)
        └── testProcess.bpmn                      (3)

Explanation:

  • (1) A java class containing a JUnit Test. It uses the ProcessEngineRule for bootstrapping the process engine, as well as camunda-bpm-assert to make your test life easier.
  • (2) Configuration file for the process engine with the ProcessCoverageInMemProcessEngineConfiguration.
  • (3) The BPMN process with a link event.

Running the test with maven

In order to run the testsuite with maven you can say:

mvn clean test

Verifying that the problem lies in the test coverage

Simply edit the camunda.cfg.xml and use the StandaloneInMemProcessEngineConfiguration instead. The test runs fine then.

About

Example project to reproduce a NPE encountered with the ProcessCoverageInMemProcessEngineConfiguration and link events in the camunda BPMN process.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages