T - The "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation"
for more details.public interface AssertOnValueComparison<T extends AssertOnValueComparison<T>>
| Modifier and Type | Method and Description |
|---|---|
T |
isGreaterThan(Number expected)
Verifies that the value is greater than a number.
|
T |
isGreaterThanOrEqualTo(Number expected)
Verifies that the value is greater than or equal to a number.
|
T |
isLessThan(Number expected)
Verifies that the value is less than a number.
|
T |
isLessThanOrEqualTo(Number expected)
Verifies that the value is less than or equal to a number.
|
T isGreaterThan(Number expected)
Example where the assertion verifies that the value in the first Column of the first Row of the
Table is greater than number 3 :
assertThat(table).row().value().isGreaterThan(3);
Example where the assertion verifies that the value in the first Column of the Row at end point
of the first Change is greater than number 3 :
assertThat(changes).change().rowAtEndPoint().value().isGreaterThan(3);
expected - The expected number value.this assertion object.AssertionError - If the value is less than or equal to the number in parameter.AbstractValueAssert.isGreaterThan(Number),
AbstractAssertWithValues.isGreaterThan(Number)T isLessThan(Number expected)
Example where the assertion verifies that the value in the first Column of the first Row of the
Table is less than number 3 :
assertThat(table).row().value().isLessThan(3);
Example where the assertion verifies that the value in the first Column of the Row at end point
of the first Change is less than number 3 :
assertThat(changes).change().rowAtEndPoint().value().isLessThan(3);
expected - The expected number value.this assertion object.AssertionError - If the value is greater than or equal to the number in parameter.AbstractValueAssert.isLessThan(Number),
AbstractAssertWithValues.isLessThan(Number)T isGreaterThanOrEqualTo(Number expected)
Example where the assertion verifies that the value in the first Column of the first Row of the
Table is greater than or equal to number 3 :
assertThat(table).row().value().isGreaterThanOrEqual(3);
Example where the assertion verifies that the value in the first Column of the Row at end point
of the first Change is greater than or equal to number 3 :
assertThat(changes).change().rowAtEndPoint().value().isGreaterThanOrEqual(3);
expected - The expected number value.this assertion object.AssertionError - If the value is less than the number in parameter.AbstractValueAssert.isGreaterThanOrEqualTo(Number),
AbstractAssertWithValues.isGreaterThanOrEqualTo(Number)T isLessThanOrEqualTo(Number expected)
Example where the assertion verifies that the value in the first Column of the first Row of the
Table is less than or equal to number 3 :
assertThat(table).row().value().isLessThanOrEqual(3);
Example where the assertion verifies that the value in the first Column of the Row at end point
of the first Change is less than or equal to number 3 :
assertThat(changes).change().rowAtEndPoint().value().isLessThanOrEqual(3);
expected - The expected number value.this assertion object.AssertionError - If the value is greater than the number in parameter.AbstractValueAssert.isLessThanOrEqualTo(Number),
AbstractAssertWithValues.isLessThanOrEqualTo(Number)Copyright © 2015 AssertJ. All Rights Reserved.