Class ModelStateAssert

    • Field Summary

      • Fields inherited from class org.fest.assertions.GenericAssert

        actual, myself
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static ModelStateAssert assertThat​(AbstractItemModel model)  
      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.fest.assertions.GenericAssert

        as, as, describedAs, describedAs, doesNotSatisfy, is, isEqualTo, isIn, isIn, isNot, isNotEqualTo, isNotIn, isNotIn, isNotNull, isNotSameAs, isNull, isSameAs, overridingErrorMessage, satisfies
      • Methods inherited from class org.fest.assertions.Assert

        customErrorMessage, description, description, description, equals, fail, fail, failIfCustomMessageIsSet, failIfCustomMessageIsSet, failure, formattedErrorMessage, hashCode, rawDescription, replaceDefaultErrorMessagesWith
      • 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*.