Class FormAssert

java.lang.Object
org.assertj.core.api.AbstractAssert<FormAssert,io.camunda.client.api.response.Form>
io.camunda.zeebe.process.test.assertions.FormAssert
All Implemented Interfaces:
org.assertj.core.api.Assert<FormAssert,io.camunda.client.api.response.Form>, org.assertj.core.api.Descriptable<FormAssert>, org.assertj.core.api.ExtensionPoints<FormAssert,io.camunda.client.api.response.Form>

public class FormAssert extends org.assertj.core.api.AbstractAssert<FormAssert,io.camunda.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

    Constructors
    Modifier
    Constructor
    Description
    protected
    FormAssert(io.camunda.client.api.response.Form form, RecordStream recordStream)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    hasFormId(String expectedFormId)
     
    hasFormKey(long expectedFormKey)
     
    hasResourceName(String expectedResourceName)
    Asserts that the form has the given resource name
    hasVersion(long expectedVersion)
    Asserts that the form has the given version
    Finds if a form is created.

    Methods inherited from class org.assertj.core.api.AbstractAssert

    actual, areEqual, asInstanceOf, asList, assertionError, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, doesNotHaveSameHashCodeAs, doesNotHaveToString, doesNotHaveToString, doesNotMatch, doesNotMatch, 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, usingEquals, usingEquals, 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

    • FormAssert

      protected FormAssert(io.camunda.client.api.response.Form form, RecordStream recordStream)
  • Method Details

    • hasFormId

      public FormAssert hasFormId(String expectedFormId)
    • hasFormKey

      public FormAssert hasFormKey(long expectedFormKey)
    • hasVersion

      public FormAssert hasVersion(long expectedVersion)
      Asserts that the form has the given version
      Parameters:
      expectedVersion - version to check
      Returns:
      this FormAssert
    • hasResourceName

      public FormAssert hasResourceName(String expectedResourceName)
      Asserts that the form has the given resource name
      Parameters:
      expectedResourceName - resource name to check
      Returns:
      this FormAssert
    • isFormCreated

      public FormAssert isFormCreated(String formId)
      Finds if a form is created.
      Parameters:
      formId - the id of the form
      Returns:
      this FormAssert