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 protectedJobAssert(ProcessEngine engine, Job actual)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static JobAssertassertThat(ProcessEngine engine, Job actual)protected ExecutionQueryexecutionQuery()protected JobgetCurrent()JobAsserthasActivityId(java.lang.String activityId)JobAsserthasDeploymentId(java.lang.String expectedDeploymentId)Verifies the expectation of a specific deployment id for theJob.JobAsserthasDueDate(java.util.Date expectedDueDate)Verifies the expectation of a specific due date for theJob.JobAsserthasExceptionMessage()Verifies the expectation of the existence of an exception message for theJob.JobAsserthasExecutionId(java.lang.String expectedExecutionId)Verifies the expectation of a specific execution id for theJob.JobAsserthasId(java.lang.String expectedId)Verifies the expectation of a specific id for theJob.JobAsserthasProcessInstanceId(java.lang.String expectedProcessInstanceId)Verifies the expectation of a specific process instance id for theJob.JobAsserthasRetries(int expectedRetries)Verifies the expectation of a specific number of retries left for theJob.protected JobQueryjobQuery()protected java.lang.StringtoString(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, 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:
getCurrentin classAbstractProcessAssert<JobAssert,Job>
-
hasId
public JobAssert hasId(java.lang.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(java.util.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(java.lang.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(java.lang.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(java.lang.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()
-
hasActivityId
public JobAssert hasActivityId(java.lang.String activityId)
-
toString
protected java.lang.String toString(Job job)
- Specified by:
toStringin classAbstractProcessAssert<JobAssert,Job>
-
jobQuery
protected JobQuery jobQuery()
- Overrides:
jobQueryin classAbstractProcessAssert<JobAssert,Job>
-
executionQuery
protected ExecutionQuery executionQuery()
- Overrides:
executionQueryin classAbstractProcessAssert<JobAssert,Job>
-
-