Class ExternalTaskAssert
- java.lang.Object
-
- org.assertj.core.api.AbstractAssert<S,A>
-
- org.camunda.bpm.engine.test.assertions.bpmn.AbstractProcessAssert<ExternalTaskAssert,ExternalTask>
-
- org.camunda.bpm.engine.test.assertions.bpmn.ExternalTaskAssert
-
- All Implemented Interfaces:
org.assertj.core.api.Assert<ExternalTaskAssert,ExternalTask>
,org.assertj.core.api.Descriptable<ExternalTaskAssert>
,org.assertj.core.api.ExtensionPoints<ExternalTaskAssert,ExternalTask>
public class ExternalTaskAssert extends AbstractProcessAssert<ExternalTaskAssert,ExternalTask>
Assertions for anExternalTask
.
-
-
Field Summary
-
Fields inherited from class org.camunda.bpm.engine.test.assertions.bpmn.AbstractProcessAssert
engine
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ExternalTaskAssert(ProcessEngine engine, ExternalTask actual)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static ExternalTaskAssert
assertThat(ProcessEngine engine, ExternalTask actual)
protected ExternalTask
getCurrent()
ExternalTaskAssert
hasActivityId(String activityId)
Verifies the activity id of anExternalTask
.ExternalTaskAssert
hasTopicName(String topicName)
Verifies the topic name of anExternalTask
.protected String
toString(ExternalTask task)
-
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, processDefinitionQuery, processInstanceQuery, 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, satisfiesForProxy, setCustomRepresentation, setDescriptionConsumer, setPrintAssertionsDescription, throwAssertionError, usingComparator, usingComparator, usingDefaultComparator, usingRecursiveComparison, usingRecursiveComparison, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnError
-
-
-
-
Constructor Detail
-
ExternalTaskAssert
protected ExternalTaskAssert(ProcessEngine engine, ExternalTask actual)
-
-
Method Detail
-
assertThat
protected static ExternalTaskAssert assertThat(ProcessEngine engine, ExternalTask actual)
-
getCurrent
protected ExternalTask getCurrent()
- Specified by:
getCurrent
in classAbstractProcessAssert<ExternalTaskAssert,ExternalTask>
-
hasTopicName
public ExternalTaskAssert hasTopicName(String topicName)
Verifies the topic name of anExternalTask
.- Parameters:
topicName
- the expected value of the topic- Returns:
- this
ExternalTaskAssert
-
hasActivityId
public ExternalTaskAssert hasActivityId(String activityId)
Verifies the activity id of anExternalTask
.- Parameters:
activityId
- the expected value of the external task activityId attribute- Returns:
- this
ExternalTaskAssert
-
toString
protected String toString(ExternalTask task)
- Specified by:
toString
in classAbstractProcessAssert<ExternalTaskAssert,ExternalTask>
-
-