public class DoublePropertyAssert extends AbstractAssert<DoublePropertyAssert,DoubleProperty>
DoublePropertys.
To create an instance of this class, invoke
.
Assertions.assertThat(DoubleProperty)
actual, info, myself| Modifier | Constructor and Description |
|---|---|
protected |
DoublePropertyAssert(DoubleProperty actual) |
| Modifier and Type | Method and Description |
|---|---|
DoublePropertyAssert |
hasSameValue(ObservableNumberValue expectedValue)
Verifies that the actual observable has the same value as the given observable.
|
DoublePropertyAssert |
hasValue(double expectedValue)
Verifies that the actual observable has the expected value set.
|
DoublePropertyAssert |
hasValue(Double expectedValue,
Offset offset)
Verifies that the actual observable number has a value that is close to the given one by less then the given offset.
|
DoublePropertyAssert |
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 DoublePropertyAssert(DoubleProperty actual)
public DoublePropertyAssert hasValue(double expectedValue)
expectedValue - the value to compare to the actual observables current value.this assertion instance.public DoublePropertyAssert hasValue(Double expectedValue, Offset offset)
expectedValue - the given value to compare the actual observables value to.offset - the given positive offset.this assertion object.NullPointerException - if the given offset is null.AssertionError - if the actual observables value is not equal to the expected one.public DoublePropertyAssert isBound()
this assertion instance.public DoublePropertyAssert hasSameValue(ObservableNumberValue expectedValue)
expectedValue - the observable value to compare with the actual observables current value.this assertion instance.