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 byExtendedAssertions.assertThat(AbstractItemModel)method.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelStateAssertforProperty(java.lang.String propertyName)ModelStateAsserthasField(java.lang.String fieldName)Checks whether model has field named *fieldName*.ModelStateAsserthasFieldValueEqualTo(java.lang.Object expectedValue)Checks value of the field in the model.ModelStateAsserthasFieldWithNullValue()Checks whether value of the field in the model is null.ModelStateAsserthasGetter(java.lang.String getterName)Checks whether model has getter named *getterName*.ModelStateAsserthasLoadedValueEqualTo(java.lang.Object expectedValue)Checks value in the model context.ModelStateAsserthasSetter(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
-
-
-
-
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*.
-
-