Class ProcessDefinitionAssert
java.lang.Object
org.assertj.core.api.AbstractAssert<S,A>
org.camunda.bpm.engine.test.assertions.bpmn.AbstractProcessAssert<ProcessDefinitionAssert,ProcessDefinition>
org.camunda.bpm.engine.test.assertions.bpmn.ProcessDefinitionAssert
- All Implemented Interfaces:
org.assertj.core.api.Assert<ProcessDefinitionAssert,
,ProcessDefinition> org.assertj.core.api.Descriptable<ProcessDefinitionAssert>
,org.assertj.core.api.ExtensionPoints<ProcessDefinitionAssert,
ProcessDefinition>
public class ProcessDefinitionAssert
extends AbstractProcessAssert<ProcessDefinitionAssert,ProcessDefinition>
Assertions for a
ProcessDefinition
.-
Field Summary
Fields inherited from class org.camunda.bpm.engine.test.assertions.bpmn.AbstractProcessAssert
engine
Fields inherited from class org.assertj.core.api.AbstractAssert
actual, info, myself, objects, throwUnsupportedExceptionOnEquals
-
Constructor Summary
ModifierConstructorDescriptionprotected
ProcessDefinitionAssert
(ProcessEngine engine, ProcessDefinition actual) -
Method Summary
Modifier and TypeMethodDescriptionprotected static ProcessDefinitionAssert
assertThat
(ProcessEngine engine, ProcessDefinition actual) protected ProcessDefinition
hasActiveInstances
(long number) Verifies the expectation that theProcessDefinition
currently has the specified number of active instances, iow neither suspended nor ended instances.protected ProcessDefinitionQuery
protected ProcessInstanceQuery
protected String
toString
(ProcessDefinition processDefinition) Methods inherited from class org.camunda.bpm.engine.test.assertions.bpmn.AbstractProcessAssert
caseDefinitionQuery, caseExecutionQuery, caseInstanceQuery, caseService, executionQuery, externalTaskQuery, externalTaskService, formService, getActual, getExistingCurrent, getLastAssert, historicActivityInstanceQuery, historicCaseActivityInstanceQuery, historicProcessInstanceQuery, historicVariableInstanceQuery, historyService, jobQuery, managementService, repositoryService, resetLastAsserts, runtimeService, taskQuery, taskService
Methods inherited from class org.assertj.core.api.AbstractAssert
areEqual, asInstanceOf, asList, assertionError, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, doesNotHaveSameHashCodeAs, doesNotHaveToString, equals, extracting, extracting, failure, failureWithActualExpected, failWithActualExpectedAndMessage, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, inBinary, inHexadecimal, is, isElementOfCustomAssert, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isInstanceOfSatisfying, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, matches, matches, newListAssertInstance, overridingErrorMessage, overridingErrorMessage, satisfies, satisfies, satisfies, satisfiesAnyOf, satisfiesAnyOf, satisfiesAnyOfForProxy, satisfiesForProxy, setCustomRepresentation, setDescriptionConsumer, setPrintAssertionsDescription, throwAssertionError, usingComparator, usingComparator, usingDefaultComparator, usingRecursiveAssertion, usingRecursiveAssertion, usingRecursiveComparison, usingRecursiveComparison, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnError
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.assertj.core.api.Descriptable
as, as, as, describedAs
-
Constructor Details
-
ProcessDefinitionAssert
-
-
Method Details
-
assertThat
-
getCurrent
- Specified by:
getCurrent
in classAbstractProcessAssert<ProcessDefinitionAssert,
ProcessDefinition>
-
toString
- Specified by:
toString
in classAbstractProcessAssert<ProcessDefinitionAssert,
ProcessDefinition>
-
hasActiveInstances
Verifies the expectation that theProcessDefinition
currently has the specified number of active instances, iow neither suspended nor ended instances.- Parameters:
number
- the number of expected active instances- Returns:
- this
ProcessDefinitionAssert
-
processInstanceQuery
- Overrides:
processInstanceQuery
in classAbstractProcessAssert<ProcessDefinitionAssert,
ProcessDefinition>
-
processDefinitionQuery
- Overrides:
processDefinitionQuery
in classAbstractProcessAssert<ProcessDefinitionAssert,
ProcessDefinition>
-