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
-
-
Field Summary
-
Fields inherited from class org.camunda.bpm.engine.test.assertions.bpmn.AbstractProcessAssert
engine
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
JobAssert(ProcessEngine engine, Job actual)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static JobAssert
assertThat(ProcessEngine engine, Job actual)
protected ExecutionQuery
executionQuery()
protected Job
getCurrent()
JobAssert
hasActivityId(String activityId)
JobAssert
hasDeploymentId(String expectedDeploymentId)
Verifies the expectation of a specific deployment id for theJob
.JobAssert
hasDueDate(Date expectedDueDate)
Verifies the expectation of a specific due date for theJob
.JobAssert
hasExceptionMessage()
Verifies the expectation of the existence of an exception message for theJob
.JobAssert
hasExecutionId(String expectedExecutionId)
Verifies the expectation of a specific execution id for theJob
.JobAssert
hasId(String expectedId)
Verifies the expectation of a specific id for theJob
.JobAssert
hasProcessInstanceId(String expectedProcessInstanceId)
Verifies the expectation of a specific process instance id for theJob
.JobAssert
hasRetries(int expectedRetries)
Verifies the expectation of a specific number of retries left for theJob
.protected JobQuery
jobQuery()
protected String
toString(Job job)
-
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
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
-
JobAssert
protected JobAssert(ProcessEngine engine, Job actual)
-
-
Method Detail
-
assertThat
protected static JobAssert assertThat(ProcessEngine engine, Job actual)
-
getCurrent
protected Job getCurrent()
- Specified by:
getCurrent
in classAbstractProcessAssert<JobAssert,Job>
-
hasId
public JobAssert hasId(String expectedId)
Verifies the expectation of a specific id for theJob
.- Parameters:
expectedId
- the expected job id- Returns:
- this
JobAssert
- See Also:
Job.getId()
-
hasDueDate
public JobAssert hasDueDate(Date expectedDueDate)
Verifies the expectation of a specific due date for theJob
.- Parameters:
expectedDueDate
- the expected due date- Returns:
- this
JobAssert
- See Also:
Job.getDuedate()
-
hasProcessInstanceId
public JobAssert hasProcessInstanceId(String expectedProcessInstanceId)
Verifies the expectation of a specific process instance id for theJob
.- Parameters:
expectedProcessInstanceId
- the expected process instance id- Returns:
- this
JobAssert
- See Also:
Job.getProcessInstanceId()
-
hasExecutionId
public JobAssert hasExecutionId(String expectedExecutionId)
Verifies the expectation of a specific execution id for theJob
.- Parameters:
expectedExecutionId
- the expected execution id- Returns:
- this
JobAssert
- See Also:
Job.getExecutionId()
-
hasRetries
public JobAssert hasRetries(int expectedRetries)
Verifies the expectation of a specific number of retries left for theJob
.- Parameters:
expectedRetries
- the expected number of retries- Returns:
- this
JobAssert
- See Also:
Job.getExecutionId()
-
hasExceptionMessage
public JobAssert hasExceptionMessage()
Verifies the expectation of the existence of an exception message for theJob
.- Returns:
- this
JobAssert
- See Also:
Job.getExceptionMessage()
-
hasDeploymentId
public JobAssert hasDeploymentId(String expectedDeploymentId)
Verifies the expectation of a specific deployment id for theJob
.- Parameters:
expectedDeploymentId
- the expected deployment id- Returns:
- this
JobAssert
- See Also:
Job.getDeploymentId()
-
toString
protected String toString(Job job)
- Specified by:
toString
in classAbstractProcessAssert<JobAssert,Job>
-
jobQuery
protected JobQuery jobQuery()
- Overrides:
jobQuery
in classAbstractProcessAssert<JobAssert,Job>
-
executionQuery
protected ExecutionQuery executionQuery()
- Overrides:
executionQuery
in classAbstractProcessAssert<JobAssert,Job>
-
-