Interface AssertOnValueComparison<T extends AssertOnValueComparison<T>>
- Type Parameters:
T
- The "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation" for more details.
- All Known Implementing Classes:
AbstractAssertWithValues
,AbstractColumnValueAssert
,AbstractRowValueAssert
,AbstractValueAssert
,ChangeColumnValueAssert
,ChangeRowValueAssert
,RequestColumnValueAssert
,RequestRowValueAssert
,TableColumnValueAssert
,TableRowValueAssert
- Author:
- Régis Pouiller
-
Method Summary
Modifier and TypeMethodDescriptionisGreaterThan
(Number expected) Verifies that the value is greater than a number.isGreaterThanOrEqualTo
(Number expected) Verifies that the value is greater than or equal to a number.isLessThan
(Number expected) Verifies that the value is less than a number.isLessThanOrEqualTo
(Number expected) Verifies that the value is less than or equal to a number.
-
Method Details
-
isGreaterThan
Verifies that the value is greater than a number.Example where the assertion verifies that the value in the first
Column
of the firstRow
of theTable
is greater than number 3 :assertThat(table).row().value().isGreaterThan(3);
Example where the assertion verifies that the value in the first
Column
of theRow
at end point of the firstChange
is greater than number 3 :assertThat(changes).change().rowAtEndPoint().value().isGreaterThan(3);
- Parameters:
expected
- The expected number value.- Returns:
this
assertion object.- Throws:
AssertionError
- If the value is less than or equal to the number in parameter.- See Also:
-
isLessThan
Verifies that the value is less than a number.Example where the assertion verifies that the value in the first
Column
of the firstRow
of theTable
is less than number 3 :assertThat(table).row().value().isLessThan(3);
Example where the assertion verifies that the value in the first
Column
of theRow
at end point of the firstChange
is less than number 3 :assertThat(changes).change().rowAtEndPoint().value().isLessThan(3);
- Parameters:
expected
- The expected number value.- Returns:
this
assertion object.- Throws:
AssertionError
- If the value is greater than or equal to the number in parameter.- See Also:
-
isGreaterThanOrEqualTo
Verifies that the value is greater than or equal to a number.Example where the assertion verifies that the value in the first
Column
of the firstRow
of theTable
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 theRow
at end point of the firstChange
is greater than or equal to number 3 :assertThat(changes).change().rowAtEndPoint().value().isGreaterThanOrEqual(3);
- Parameters:
expected
- The expected number value.- Returns:
this
assertion object.- Throws:
AssertionError
- If the value is less than the number in parameter.- See Also:
-
isLessThanOrEqualTo
Verifies that the value is less than or equal to a number.Example where the assertion verifies that the value in the first
Column
of the firstRow
of theTable
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 theRow
at end point of the firstChange
is less than or equal to number 3 :assertThat(changes).change().rowAtEndPoint().value().isLessThanOrEqual(3);
- Parameters:
expected
- The expected number value.- Returns:
this
assertion object.- Throws:
AssertionError
- If the value is greater than the number in parameter.- See Also:
-