Skip to content

Latest commit

 

History

History

camunda-bpm-junit-use-engine

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Register Your Process Engine in JUnit 5 and Camunda Platform Assert

This examples shows how to create a process engine in your test class without a configuration file and register it for your test runs using the JUnit 5 extension and Camunda Platform Assert.

The project contains the following files:

src
├── main
│   ├── java
│   └── resources
└── test
    ├── java
    │   └── org
    │       └── camunda
    │           └── bpm
    │               └── unittest
    │                    └── UseProcessEngineTest.java   (1)
    └── resources
        └── testProcess.bpmn                             (2)

Explanation:

  • (1) The test class that
    • creates the process engine from the configuration builder
    • registers the process engine for the JUnit 5 test
    • registers the process engine for the Camunda Platform Assert library
  • (2) The process model to test

Running the test with maven

In order to run the test with maven you can use:

mvn clean test