Skip to content

ybroeker/camunda-junit5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

camunda-junit5

https://github.com///actions/workflows/<WORKFLOW_FILE>/badge.svg

Build Status

Adds Support for Camundas @Deployment in JUnit 5 environments.

Usage

Just add the ProcessEngineExtension to the test-class and annotate class or methods with @Deployment:

@ExtendWith(ProcessEngineExtension.class)
class ExampleTest {
    
    @Test
    @Deployment(resources = {"Example_Workflow.bpmn"})
    void example(final TestProcessEngine testProcessEngine) {
        
    }
}

It allows to add TestProcessEngine as method-parameter, which provides access to repositories, services and ProcessEngine, and allows registration of ProcessApplications

An example can be found in de.ybroeker.camunda.junit.jupiter.example.ExampleTest.

Maven

Jitpack

Add jitpack-repository:

<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
        <snapshots>
            <enabled>true</enabled>
        </snapshots>
    </repository>
</repositories>

Add dependency:

<dependency>
    <groupId>com.github.ybroeker</groupId>
    <artifactId>camunda-junit5</artifactId>
    <version>0.0.8</version>
    <scope>test</scope>
</dependency>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published