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 TypeMethodDescriptionforProperty(String propertyName) Checks whether model has field named *fieldName*.hasFieldValueEqualTo(Object expectedValue) Checks value of the field in the model.Checks whether value of the field in the model is null.Checks whether model has getter named *getterName*.hasLoadedValueEqualTo(Object expectedValue) Checks value in the model context.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 Details
-
forProperty
-
hasLoadedValueEqualTo
Checks value in the model context. -
hasFieldValueEqualTo
Checks value of the field in the model. -
hasFieldWithNullValue
Checks whether value of the field in the model is null. -
hasSetter
Checks whether model has setter named *setterName*. -
hasGetter
Checks whether model has getter named *getterName*. -
hasField
Checks whether model has field named *fieldName*.
-