public class StringPropertyAssert extends AbstractAssert<StringPropertyAssert,StringProperty>
StringPropertys.
To create an instance of this class, invoke
.
Assertions.assertThat(StringProperty)
actual, info, myself| Modifier | Constructor and Description |
|---|---|
protected |
StringPropertyAssert(StringProperty actual) |
| Modifier and Type | Method and Description |
|---|---|
StringPropertyAssert |
hasNotNullValue()
Verifies that the actual observable has NOT a value of
null. |
StringPropertyAssert |
hasNullValue()
Verifies that the actual observable has a value of
null. |
StringPropertyAssert |
hasSameValue(ObservableStringValue expectedValue)
Verifies that the actual observable has the same value as the given observable.
|
StringPropertyAssert |
hasValue(String expectedValue)
Verifies that the actual observable has the expected value set.
|
StringPropertyAssert |
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 StringPropertyAssert(StringProperty actual)
public StringPropertyAssert hasValue(String expectedValue)
expectedValue - the value to compare to the actual observables current value.this assertion instance.public StringPropertyAssert isBound()
this assertion instance.public StringPropertyAssert hasNullValue()
null.this assertion instance.public StringPropertyAssert hasNotNullValue()
null.this assertion instance.public StringPropertyAssert hasSameValue(ObservableStringValue expectedValue)
expectedValue - the observable value to compare with the actual observables current value.this assertion instance.