org.camunda.bpm.engine.test.assertions.bpmn
Class AbstractAssertions

java.lang.Object
  extended by org.assertj.core.api.Assertions
      extended by org.camunda.bpm.engine.test.assertions.bpmn.AbstractAssertions
Direct Known Subclasses:
BpmnAwareAssertions

public abstract class AbstractAssertions
extends org.assertj.core.api.Assertions

Author:
Martin Schimak

Constructor Summary
AbstractAssertions()
           
 
Method Summary
protected static void assertApi(String api)
           
static void init(org.camunda.bpm.engine.ProcessEngine processEngine)
          Bind an instance of ProcessEngine to the current testing calls done in your test method.
static org.camunda.bpm.engine.ProcessEngine processEngine()
          Retrieve the processEngine bound to the current testing thread via calling init(ProcessEngine processEngine).
static void reset()
          Resets operations done via calling init(ProcessEngine processEngine) to its clean state - just as before calling init() for the first time.
protected static boolean supportsApi(String api)
           
 
Methods inherited from class org.assertj.core.api.Assertions
allOf, allOf, anyOf, anyOf, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, atIndex, contentOf, contentOf, contentOf, doesNotHave, entry, extractProperty, extractProperty, fail, fail, failBecauseExceptionWasNotThrown, filter, filter, linesOf, linesOf, linesOf, not, offset, offset, registerCustomDateFormat, registerCustomDateFormat, setAllowExtractingPrivateFields, setRemoveAssertJRelatedElementsFromStackTrace, tuple, useDateFormat, useDateFormat, useDefaultDateFormats, useDefaultDateFormatsOnly, useIsoDateFormat, useIsoDateTimeFormat, useIsoDateTimeWithMsFormat, within, within, within
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractAssertions

public AbstractAssertions()
Method Detail

processEngine

public static org.camunda.bpm.engine.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(org.camunda.bpm.engine.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.


assertApi

protected static void assertApi(String api)

supportsApi

protected static boolean supportsApi(String api)


Copyright © 2016 camunda services GmbH. All rights reserved.