public class ObjectPropertyAssert<T> extends AbstractAssert<ObjectPropertyAssert<T>,ObjectProperty<T>>
ObjectPropertys.
To create an instance of this class, invoke
.
Assertions.assertThat(ObjectProperty)
actual, info, myself| Modifier | Constructor and Description |
|---|---|
protected |
ObjectPropertyAssert(ObjectProperty<T> actual) |
| Modifier and Type | Method and Description |
|---|---|
ObjectPropertyAssert<T> |
hasNotNullValue()
Verifies that the actual observable has NOT a value of
null. |
ObjectPropertyAssert<T> |
hasNullValue()
Verifies that the actual observable has a value of
null. |
ObjectPropertyAssert<T> |
hasSameValue(ObservableObjectValue<T> expectedValue)
Verifies that the actual observable has the same value as the given observable.
|
ObjectPropertyAssert<T> |
hasValue(T expectedValue)
Verifies that the actual observable has the expected value set.
|
ObjectPropertyAssert |
isBound()
Verifies that the actual observable is bound by another observable.
|
as, as, describedAs, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, equals, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, inBinary, inHexadecimal, is, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, overridingErrorMessage, usingComparator, usingDefaultComparatorprotected ObjectPropertyAssert(ObjectProperty<T> actual)
public ObjectPropertyAssert<T> hasValue(T expectedValue)
expectedValue - the value to compare to the actual observables current value.this assertion instance.public ObjectPropertyAssert isBound()
this assertion instance.public ObjectPropertyAssert<T> hasNullValue()
null.this assertion instance.public ObjectPropertyAssert<T> hasNotNullValue()
null.this assertion instance.public ObjectPropertyAssert<T> hasSameValue(ObservableObjectValue<T> expectedValue)
expectedValue - the observable value to compare with the actual observables current value.this assertion instance.