Class JobAssert
java.lang.Object
org.assertj.core.api.AbstractAssert<JobAssert,io.camunda.zeebe.client.api.response.ActivatedJob>
io.camunda.zeebe.process.test.assertions.JobAssert
- All Implemented Interfaces:
org.assertj.core.api.Assert<JobAssert,,io.camunda.zeebe.client.api.response.ActivatedJob> org.assertj.core.api.Descriptable<JobAssert>,org.assertj.core.api.ExtensionPoints<JobAssert,io.camunda.zeebe.client.api.response.ActivatedJob>
public class JobAssert
extends org.assertj.core.api.AbstractAssert<JobAssert,io.camunda.zeebe.client.api.response.ActivatedJob>
Assertions for
ActivatedJob instances-
Field Summary
Fields inherited from class org.assertj.core.api.AbstractAssert
actual, info, myself, objects, throwUnsupportedExceptionOnEquals -
Constructor Summary
ConstructorsConstructorDescriptionJobAssert(io.camunda.zeebe.client.api.response.ActivatedJob actual, RecordStream recordStream) -
Method Summary
Modifier and TypeMethodDescriptionExtracts the header values of the activated job.Extracts the latest incidentExtracts the variables of the activated job.Asserts whether any incidents were raised for this job (regardless of whether these incidents are active or already resolved)hasBpmnProcessId(String expectedBpmnProcessId) Asserts that the activated job is associated to the given process idhasDeadline(long expectedDeadline, org.assertj.core.data.Offset<Long> offset) Asserts that the activated job has the given deadlinehasElementId(String expectedElementId) Asserts that the activated job is associated to an element with the given idAsserts whether no incidents were raised for this jobhasRetries(int expectedRetries) Asserts that the activated job has the given number of retriesMethods inherited from class org.assertj.core.api.AbstractAssert
areEqual, 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, withThreadDumpOnErrorMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.assertj.core.api.Descriptable
as, as, as, describedAs
-
Constructor Details
-
JobAssert
public JobAssert(io.camunda.zeebe.client.api.response.ActivatedJob actual, RecordStream recordStream)
-
-
Method Details
-
hasElementId
Asserts that the activated job is associated to an element with the given id- Parameters:
expectedElementId- element id to check- Returns:
- this
JobAssert
-
hasDeadline
Asserts that the activated job has the given deadline- Parameters:
expectedDeadline- deadline in terms ofSystem.currentTimeMillis()offset- offset in milliseconds to tolerate timing invariances- Returns:
- this
JobAssert
-
hasBpmnProcessId
Asserts that the activated job is associated to the given process id- Parameters:
expectedBpmnProcessId- proces id to check- Returns:
- this
JobAssert
-
hasRetries
Asserts that the activated job has the given number of retries- Parameters:
expectedRetries- expected retries- Returns:
- this
JobAssert
-
hasAnyIncidents
Asserts whether any incidents were raised for this job (regardless of whether these incidents are active or already resolved)- Returns:
- this
JobAssert
-
hasNoIncidents
Asserts whether no incidents were raised for this job- Returns:
- this
JobAssert
-
extractingLatestIncident
Extracts the latest incident- Returns:
IncidentAssertfor the latest incident
-
extractingVariables
Extracts the variables of the activated job.- Returns:
- this
JobAssert
-
extractingHeaders
Extracts the header values of the activated job.- Returns:
- this
JobAssert
-