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 aProcessDefinition
.
-
-
Field Summary
-
Fields inherited from class org.camunda.bpm.engine.test.assertions.bpmn.AbstractProcessAssert
engine
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ProcessDefinitionAssert(ProcessEngine engine, ProcessDefinition actual)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static ProcessDefinitionAssert
assertThat(ProcessEngine engine, ProcessDefinition actual)
protected ProcessDefinition
getCurrent()
ProcessDefinitionAssert
hasActiveInstances(long number)
Verifies the expectation that theProcessDefinition
currently has the specified number of active instances, iow neither suspended nor ended instances.protected ProcessDefinitionQuery
processDefinitionQuery()
protected ProcessInstanceQuery
processInstanceQuery()
protected java.lang.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
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, setCustomRepresentation, setDescriptionConsumer, setPrintAssertionsDescription, throwAssertionError, usingComparator, usingComparator, usingDefaultComparator, usingRecursiveComparison, usingRecursiveComparison, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnError
-
-
-
-
Constructor Detail
-
ProcessDefinitionAssert
protected ProcessDefinitionAssert(ProcessEngine engine, ProcessDefinition actual)
-
-
Method Detail
-
assertThat
protected static ProcessDefinitionAssert assertThat(ProcessEngine engine, ProcessDefinition actual)
-
getCurrent
protected ProcessDefinition getCurrent()
- Specified by:
getCurrent
in classAbstractProcessAssert<ProcessDefinitionAssert,ProcessDefinition>
-
toString
protected java.lang.String toString(ProcessDefinition processDefinition)
- Specified by:
toString
in classAbstractProcessAssert<ProcessDefinitionAssert,ProcessDefinition>
-
hasActiveInstances
public ProcessDefinitionAssert hasActiveInstances(long number)
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
protected ProcessInstanceQuery processInstanceQuery()
- Overrides:
processInstanceQuery
in classAbstractProcessAssert<ProcessDefinitionAssert,ProcessDefinition>
-
processDefinitionQuery
protected ProcessDefinitionQuery processDefinitionQuery()
- Overrides:
processDefinitionQuery
in classAbstractProcessAssert<ProcessDefinitionAssert,ProcessDefinition>
-
-