Class ModelStateAssert

    • Field Summary

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

        actual, info, myself
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ModelStateAssert forProperty​(java.lang.String propertyName)  
      ModelStateAssert hasField​(java.lang.String fieldName)
      Checks whether model has field named *fieldName*.
      ModelStateAssert hasFieldValueEqualTo​(java.lang.Object expectedValue)
      Checks value of the field in the model.
      ModelStateAssert hasFieldWithNullValue()
      Checks whether value of the field in the model is null.
      ModelStateAssert hasGetter​(java.lang.String getterName)
      Checks whether model has getter named *getterName*.
      ModelStateAssert hasLoadedValueEqualTo​(java.lang.Object expectedValue)
      Checks value in the model context.
      ModelStateAssert hasSetter​(java.lang.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 Detail

      • forProperty

        public ModelStateAssert forProperty​(java.lang.String propertyName)
      • hasLoadedValueEqualTo

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

        public ModelStateAssert hasFieldValueEqualTo​(java.lang.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​(java.lang.String setterName)
        Checks whether model has setter named *setterName*.
      • hasGetter

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

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