public class BindingAssert<T> extends AbstractAssert<BindingAssert<T>,Binding<T>>
Bindings.
To create an instance of this class, invoke
.
Assertions.assertThat(Binding)
actual, info, myself| Modifier | Constructor and Description |
|---|---|
protected |
BindingAssert(Binding<T> actual) |
| Modifier and Type | Method and Description |
|---|---|
BindingAssert<T> |
dependsOn(Observable observable)
Verifies that the actual Binding is bound and depends on the given Observable value.
|
BindingAssert<T> |
hasNotNullValue()
Verifies that the actual binding has NOT a value of
null. |
BindingAssert<T> |
hasNullValue()
Verifies that the actual binding has a value of
null. |
BindingAssert<T> |
hasSameValue(ObservableValue<T> expectedValue)
Verifies that the actual binding has the same value as the given observable.
|
BindingAssert<T> |
hasValue(T expectedValue)
Verifies that the actual binding has the expected value set.
|
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, usingDefaultComparatorpublic BindingAssert<T> dependsOn(Observable observable)
observable - the observable that is expected to be a binding dependency of the actual binding.this assertion instancepublic BindingAssert<T> hasValue(T expectedValue)
expectedValue - the value to compare to the actual bindings current value.this assertion instance.public BindingAssert<T> hasNullValue()
null.this assertion instance.public BindingAssert<T> hasNotNullValue()
null.this assertion instance.public BindingAssert<T> hasSameValue(ObservableValue<T> expectedValue)
expectedValue - the observable value to compare with the actual bindings current value.this assertion instance.