Class AbstractAssertions

java.lang.Object
org.camunda.bpm.engine.test.assertions.bpmn.AbstractAssertions
Direct Known Subclasses:
BpmnAwareTests

public abstract class AbstractAssertions extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    init(ProcessEngine processEngine)
    Bind an instance of ProcessEngine to the current testing calls done in your test method.
    Retrieve the processEngine bound to the current testing thread via calling init(ProcessEngine processEngine).
    static void
    Resets operations done via calling init(ProcessEngine processEngine) to its clean state - just as before calling init() for the first time.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AbstractAssertions

      public AbstractAssertions()
  • Method Details

    • processEngine

      public static ProcessEngine processEngine()
      Retrieve the processEngine bound to the current testing thread via calling init(ProcessEngine processEngine). In case no such processEngine is bound yet, init(processEngine) is called with a default process engine.
      Returns:
      processEngine bound to the current testing thread
      Throws:
      IllegalStateException - in case a processEngine has not been initialised yet and cannot be initialised with a default engine.
    • init

      public static void init(ProcessEngine processEngine)
      Bind an instance of ProcessEngine to the current testing calls done in your test method.
      Parameters:
      processEngine - ProcessEngine which should be bound to the current testing thread.
    • reset

      public static void reset()
      Resets operations done via calling init(ProcessEngine processEngine) to its clean state - just as before calling init() for the first time.