Class ModelStateAssert

java.lang.Object
org.assertj.core.api.AbstractAssert<ModelStateAssert,AbstractItemModel>
de.hybris.platform.testframework.assertions.assertj.ModelStateAssert
All Implemented Interfaces:
org.assertj.core.api.Assert<ModelStateAssert,AbstractItemModel>, org.assertj.core.api.Descriptable<ModelStateAssert>, org.assertj.core.api.ExtensionPoints<ModelStateAssert,AbstractItemModel>

public class ModelStateAssert extends org.assertj.core.api.AbstractAssert<ModelStateAssert,AbstractItemModel>
Assertion for testing model state. This assertion should be created by ExtendedAssertions.assertThat(AbstractItemModel) method.
  • Field Summary

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

    actual, info, myself
  • Method Summary

    Modifier and Type
    Method
    Description
    forProperty(String propertyName)
     
    hasField(String fieldName)
    Checks whether model has field named *fieldName*.
    Checks value of the field in the model.
    Checks whether value of the field in the model is null.
    hasGetter(String getterName)
    Checks whether model has getter named *getterName*.
    Checks value in the model context.
    hasSetter(String setterName)
    Checks whether model has setter named *setterName*.

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

    as, as, asList, asString, describedAs, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, equals, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasToString, inBinary, inHexadecimal, is, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, matches, matches, overridingErrorMessage, satisfies, setCustomRepresentation, throwAssertionError, usingComparator, usingDefaultComparator, withFailMessage, withRepresentation, withThreadDumpOnError

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • forProperty

      public ModelStateAssert forProperty(String propertyName)
    • hasLoadedValueEqualTo

      public ModelStateAssert hasLoadedValueEqualTo(Object expectedValue)
      Checks value in the model context.
    • hasFieldValueEqualTo

      public ModelStateAssert hasFieldValueEqualTo(Object expectedValue)
      Checks value of the field in the model.
    • hasFieldWithNullValue

      public ModelStateAssert hasFieldWithNullValue()
      Checks whether value of the field in the model is null.
    • hasSetter

      public ModelStateAssert hasSetter(String setterName)
      Checks whether model has setter named *setterName*.
    • hasGetter

      public ModelStateAssert hasGetter(String getterName)
      Checks whether model has getter named *getterName*.
    • hasField

      public ModelStateAssert hasField(String fieldName)
      Checks whether model has field named *fieldName*.