Class FormAssert
java.lang.Object
org.assertj.core.api.AbstractAssert<FormAssert,io.camunda.zeebe.client.api.response.Form>
io.camunda.zeebe.process.test.assertions.FormAssert
- All Implemented Interfaces:
org.assertj.core.api.Assert<FormAssert,,io.camunda.zeebe.client.api.response.Form> org.assertj.core.api.Descriptable<FormAssert>,org.assertj.core.api.ExtensionPoints<FormAssert,io.camunda.zeebe.client.api.response.Form>
public class FormAssert
extends org.assertj.core.api.AbstractAssert<FormAssert,io.camunda.zeebe.client.api.response.Form>
Assertions for
Form instances.
These asserts can be obtained via:
final DeploymentEvent deploymentEvent =
client.newDeployCommand().addResourceFile(file).send().join();
final FormAssert formAssert =
assertThat(deploymentEvent)
.extractingFormByFormId(FORM_ID);
-
Field Summary
Fields inherited from class org.assertj.core.api.AbstractAssert
actual, info, myself, objects, throwUnsupportedExceptionOnEquals -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFormAssert(io.camunda.zeebe.client.api.response.Form form, RecordStream recordStream) -
Method Summary
Modifier and TypeMethodDescriptionhasFormKey(long expectedFormKey) hasResourceName(String expectedResourceName) Asserts that the form has the given resource namehasVersion(long expectedVersion) Asserts that the form has the given versionisFormCreated(String formId) Finds if a form is created.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, 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, describedAs
-
Constructor Details
-
FormAssert
-
-
Method Details
-
hasFormId
-
hasFormKey
-
hasVersion
Asserts that the form has the given version- Parameters:
expectedVersion- version to check- Returns:
- this
FormAssert
-
hasResourceName
Asserts that the form has the given resource name- Parameters:
expectedResourceName- resource name to check- Returns:
- this
FormAssert
-
isFormCreated
Finds if a form is created.- Parameters:
formId- the id of the form- Returns:
- this
FormAssert
-