Class JobAssert
java.lang.Object
org.assertj.core.api.AbstractAssert<S,A>
org.camunda.bpm.engine.test.assertions.bpmn.AbstractProcessAssert<JobAssert,Job>
org.camunda.bpm.engine.test.assertions.bpmn.JobAssert
- All Implemented Interfaces:
org.assertj.core.api.Assert<JobAssert,
,Job> org.assertj.core.api.Descriptable<JobAssert>
,org.assertj.core.api.ExtensionPoints<JobAssert,
Job>
Assertions for a
Job
.-
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected static JobAssert
assertThat
(ProcessEngine engine, Job actual) protected ExecutionQuery
protected Job
hasActivityId
(String activityId) hasDeploymentId
(String expectedDeploymentId) Verifies the expectation of a specific deployment id for theJob
.hasDueDate
(Date expectedDueDate) Verifies the expectation of a specific due date for theJob
.Verifies the expectation of the existence of an exception message for theJob
.hasExecutionId
(String expectedExecutionId) Verifies the expectation of a specific execution id for theJob
.Verifies the expectation of a specific id for theJob
.hasProcessInstanceId
(String expectedProcessInstanceId) Verifies the expectation of a specific process instance id for theJob
.hasRetries
(int expectedRetries) Verifies the expectation of a specific number of retries left for theJob
.protected JobQuery
jobQuery()
protected String
Methods inherited from class org.camunda.bpm.engine.test.assertions.bpmn.AbstractProcessAssert
caseDefinitionQuery, caseExecutionQuery, caseInstanceQuery, caseService, externalTaskQuery, externalTaskService, formService, getActual, getExistingCurrent, getLastAssert, historicActivityInstanceQuery, historicCaseActivityInstanceQuery, historicProcessInstanceQuery, historicVariableInstanceQuery, historyService, managementService, processDefinitionQuery, processInstanceQuery, 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, doesNotHaveToString, equals, extracting, extracting, failure, failureWithActualExpected, failWithActualExpectedAndMessage, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, 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, describedAs
-
Constructor Details
-
JobAssert
-
-
Method Details
-
assertThat
-
getCurrent
- Specified by:
getCurrent
in classAbstractProcessAssert<JobAssert,
Job>
-
hasId
Verifies the expectation of a specific id for theJob
.- Parameters:
expectedId
- the expected job id- Returns:
- this
JobAssert
- See Also:
-
hasDueDate
Verifies the expectation of a specific due date for theJob
.- Parameters:
expectedDueDate
- the expected due date- Returns:
- this
JobAssert
- See Also:
-
hasProcessInstanceId
Verifies the expectation of a specific process instance id for theJob
.- Parameters:
expectedProcessInstanceId
- the expected process instance id- Returns:
- this
JobAssert
- See Also:
-
hasExecutionId
Verifies the expectation of a specific execution id for theJob
.- Parameters:
expectedExecutionId
- the expected execution id- Returns:
- this
JobAssert
- See Also:
-
hasRetries
Verifies the expectation of a specific number of retries left for theJob
.- Parameters:
expectedRetries
- the expected number of retries- Returns:
- this
JobAssert
- See Also:
-
hasExceptionMessage
Verifies the expectation of the existence of an exception message for theJob
.- Returns:
- this
JobAssert
- See Also:
-
hasDeploymentId
Verifies the expectation of a specific deployment id for theJob
.- Parameters:
expectedDeploymentId
- the expected deployment id- Returns:
- this
JobAssert
- See Also:
-
hasActivityId
-
toString
- Specified by:
toString
in classAbstractProcessAssert<JobAssert,
Job>
-
jobQuery
- Overrides:
jobQuery
in classAbstractProcessAssert<JobAssert,
Job>
-
executionQuery
- Overrides:
executionQuery
in classAbstractProcessAssert<JobAssert,
Job>
-