Interface AssertOnValueChronology<T extends AssertOnValueChronology<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 TypeMethodDescriptionVerifies that the value is after a date, time or date/time represented by aString.Verifies that the value is after a date value.isAfter(LocalDateTime dateTime) Verifies that the value is after a date/time value.Verifies that the value is after a time value.isAfter(DateTimeValue dateTime) Verifies that the value is after a date/time value.Verifies that the value is after a date value.Verifies that the value is after a time value.isAfterOrEqualTo(String expected) Verifies that the value is after or equal to a date, time or date/time represented by aString.isAfterOrEqualTo(LocalDate date) Verifies that the value is after or equal to a date value.isAfterOrEqualTo(LocalDateTime dateTime) Verifies that the value is after or equal to a date/time value.isAfterOrEqualTo(LocalTime time) Verifies that the value is after or equal to a time value.isAfterOrEqualTo(DateTimeValue dateTime) Verifies that the value is after or equal to a date/time value.isAfterOrEqualTo(DateValue date) Verifies that the value is after or equal to a date value.isAfterOrEqualTo(TimeValue time) Verifies that the value is after or equal to a time value.Verifies that the value is before a date, time or date/time represented by aString.Verifies that the value is before a date value.isBefore(LocalDateTime dateTime) Verifies that the value is before a date/time value.Verifies that the value is before a time value.isBefore(DateTimeValue dateTime) Verifies that the value is before a date/time value.Verifies that the value is before a date value.Verifies that the value is before a time value.isBeforeOrEqualTo(String expected) Verifies that the value is before or equal to a date, time or date/time represented by aString.isBeforeOrEqualTo(LocalDate date) Verifies that the value is before or equal to a date value.isBeforeOrEqualTo(LocalDateTime dateTime) Verifies that the value is before or equal to a date/time value.isBeforeOrEqualTo(LocalTime time) Verifies that the value is before or equal to a time value.isBeforeOrEqualTo(DateTimeValue dateTime) Verifies that the value is before or equal to a date/time value.isBeforeOrEqualTo(DateValue date) Verifies that the value is before or equal to a date value.isBeforeOrEqualTo(TimeValue time) Verifies that the value is before or equal to a time value.
-
Method Details
-
isBefore
Verifies that the value is before a date value.Example where the assertion verifies that the value in the first
Columnof the firstRowof theTableis before a date value :assertThat(table).row().value().isBefore(DateValue.of(2007, 12, 23));Example where the assertion verifies that the value in the first
Columnof theRowat end point of the firstChangeis before a date value :assertThat(changes).change().rowAtEndPoint().value().isBefore(DateValue.of(2007, 12, 23));- Parameters:
date- The date value to compare to.- Returns:
thisassertion object.- Throws:
AssertionError- If the value is not before to the date value in parameter.- See Also:
-
isBefore
Verifies that the value is before a time value.Example where the assertion verifies that the value in the first
Columnof the firstRowof theTableis before a time value :assertThat(table).row().value().isBefore(TimeValue.of(21, 29, 30));Example where the assertion verifies that the value in the first
Columnof theRowat end point of the firstChangeis before a time value :assertThat(changes).change().rowAtEndPoint().value().isBefore(TimeValue.of(21, 29, 30));- Parameters:
time- The time value to compare to.- Returns:
thisassertion object.- Throws:
AssertionError- If the value is not before to the time value in parameter.- See Also:
-
isBefore
Verifies that the value is before a date/time value.Example where the assertion verifies that the value in the first
Columnof the firstRowof theTableis before a date/time value :assertThat(table).row().value().isBefore(DateTimeValue.of(DateValue.of(2007, 12, 23), TimeValue.of(21, 29)));Example where the assertion verifies that the value in the first
Columnof theRowat end point of the firstChangeis before a date/time value :assertThat(changes).change().rowAtEndPoint().value().isBefore(DateTimeValue.of(DateValue.of(2007, 12, 23), TimeValue.of(21, 29)));- Parameters:
dateTime- The date/time value to compare to.- Returns:
thisassertion object.- Throws:
AssertionError- If the value is not before to the date/time value in parameter.- See Also:
-
isBefore
Verifies that the value is before a date value.Example where the assertion verifies that the value in the first
Columnof the firstRowof theTableis before a date value :assertThat(table).row().value().isBefore(LocalDate.of(2007, 12, 23));Example where the assertion verifies that the value in the first
Columnof theRowat end point of the firstChangeis before a date value :assertThat(changes).change().rowAtEndPoint().value().isBefore(LocalDate.of(2007, 12, 23));- Parameters:
date- The date value to compare to.- Returns:
thisassertion object.- Throws:
AssertionError- If the value is not before to the date value in parameter.- See Also:
-
isBefore
Verifies that the value is before a time value.Example where the assertion verifies that the value in the first
Columnof the firstRowof theTableis before a time value :assertThat(table).row().value().isBefore(LocalTime.of(21, 29, 30));Example where the assertion verifies that the value in the first
Columnof theRowat end point of the firstChangeis before a time value :assertThat(changes).change().rowAtEndPoint().value().isBefore(LocalTime.of(21, 29, 30));- Parameters:
time- The time value to compare to.- Returns:
thisassertion object.- Throws:
AssertionError- If the value is not before to the time value in parameter.- See Also:
-
isBefore
Verifies that the value is before a date/time value.Example where the assertion verifies that the value in the first
Columnof the firstRowof theTableis before a date/time value :assertThat(table).row().value().isBefore(LocalDateTime.of(2007, 12, 23, 21, 29));Example where the assertion verifies that the value in the first
Columnof theRowat end point of the firstChangeis before a date/time value :assertThat(changes).change().rowAtEndPoint().value().isBefore(LocalDateTime.of(2007, 12, 23, 21, 29));- Parameters:
dateTime- The date/time value to compare to.- Returns:
thisassertion object.- Throws:
AssertionError- If the value is not before to the date/time value in parameter.- See Also:
-
isBefore
Verifies that the value is before a date, time or date/time represented by aString.Example where the assertion verifies that the value in the first
Columnof the firstRowof theTableis before a date represented by aString:assertThat(table).row().value().isBefore("2007-12-23");Example where the assertion verifies that the value in the first
Columnof theRowat end point of the firstChangeis before a date represented by aString:assertThat(changes).change().rowAtEndPoint().value().isBefore("2007-12-23");- Parameters:
expected- TheStringrepresenting a date, time or date/time to compare to.- Returns:
thisassertion object.- Throws:
AssertionError- If the value is not before the date, time or date/time represented in parameter.- See Also:
-
isBeforeOrEqualTo
Verifies that the value is before or equal to a date value.Example where the assertion verifies that the value in the first
Columnof the firstRowof theTableis before or equal to a date value :assertThat(table).row().value().isBeforeOrEqualTo(DateValue.of(2007, 12, 23));Example where the assertion verifies that the value in the first
Columnof theRowat end point of the firstChangeis before or equal to a date value :assertThat(changes).change().rowAtEndPoint().value().isBeforeOrEqualTo(DateValue.of(2007, 12, 23));- Parameters:
date- The date value to compare to.- Returns:
thisassertion object.- Throws:
AssertionError- If the value is not before or equal to the date value in parameter.- See Also:
-
isBeforeOrEqualTo
Verifies that the value is before or equal to a time value.Example where the assertion verifies that the value in the first
Columnof the firstRowof theTableis before or equal to a time value :assertThat(table).row().value().isBeforeOrEqualTo(TimeValue.of(21, 29, 30));Example where the assertion verifies that the value in the first
Columnof theRowat end point of the firstChangeis before or equal to a time value :assertThat(changes).change().rowAtEndPoint().value().isBeforeOrEqualTo(TimeValue.of(21, 29, 30));- Parameters:
time- The time value to compare to.- Returns:
thisassertion object.- Throws:
AssertionError- If the value is not before or equal to the time value in parameter.- See Also:
-
isBeforeOrEqualTo
Verifies that the value is before or equal to a date/time value.Example where the assertion verifies that the value in the first
Columnof the firstRowof theTableis before or equal to a date/time value :assertThat(table).row().value().isBeforeOrEqualTo(DateTimeValue.of(DateValue.of(2007, 12, 23), TimeValue.of(21, 29)));Example where the assertion verifies that the value in the first
Columnof theRowat end point of the firstChangeis before or equal to a date/time value :assertThat(changes).change().rowAtEndPoint().value().isBeforeOrEqualTo(DateTimeValue.of(DateValue.of(2007, 12, 23), TimeValue.of(21, 29)));- Parameters:
dateTime- The date/time value to compare to.- Returns:
thisassertion object.- Throws:
AssertionError- If the value is not before or equal to the date/time value in parameter.- See Also:
-
isBeforeOrEqualTo
Verifies that the value is before or equal to a date value.Example where the assertion verifies that the value in the first
Columnof the firstRowof theTableis before or equal to a date value :assertThat(table).row().value().isBeforeOrEqualTo(LocalDate.of(2007, 12, 23));Example where the assertion verifies that the value in the first
Columnof theRowat end point of the firstChangeis before or equal to a date value :assertThat(changes).change().rowAtEndPoint().value().isBeforeOrEqualTo(LocalDate.of(2007, 12, 23));- Parameters:
date- The date value to compare to.- Returns:
thisassertion object.- Throws:
AssertionError- If the value is not before or equal to the date value in parameter.- See Also:
-
isBeforeOrEqualTo
Verifies that the value is before or equal to a time value.Example where the assertion verifies that the value in the first
Columnof the firstRowof theTableis before or equal to a time value :assertThat(table).row().value().isBeforeOrEqualTo(LocalTime.of(21, 29, 30));Example where the assertion verifies that the value in the first
Columnof theRowat end point of the firstChangeis before or equal to a time value :assertThat(changes).change().rowAtEndPoint().value().isBeforeOrEqualTo(LocalTime.of(21, 29, 30));- Parameters:
time- The time value to compare to.- Returns:
thisassertion object.- Throws:
AssertionError- If the value is not before or equal to the time value in parameter.- See Also:
-
isBeforeOrEqualTo
Verifies that the value is before or equal to a date/time value.Example where the assertion verifies that the value in the first
Columnof the firstRowof theTableis before or equal to a date/time value :assertThat(table).row().value().isBeforeOrEqualTo(LocalDateTime.of(2007, 12, 23, 21, 29));Example where the assertion verifies that the value in the first
Columnof theRowat end point of the firstChangeis before or equal to a date/time value :assertThat(changes).change().rowAtEndPoint().value().isBeforeOrEqualTo(LocalDateTime.of(2007, 12, 23, 21, 29));- Parameters:
dateTime- The date/time value to compare to.- Returns:
thisassertion object.- Throws:
AssertionError- If the value is not before or equal to the date/time value in parameter.- See Also:
-
isBeforeOrEqualTo
Verifies that the value is before or equal to a date, time or date/time represented by aString.Example where the assertion verifies that the value in the first
Columnof the firstRowof theTableis before or equal to a date represented by aString:assertThat(table).row().value().isBeforeOrEqualTo("2007-12-23");Example where the assertion verifies that the value in the first
Columnof theRowat end point of the firstChangeis before or equal to a date represented by aString:assertThat(changes).change().rowAtEndPoint().value().isBeforeOrEqualTo("2007-12-23");- Parameters:
expected- TheStringrepresenting a date, time or date/time to compare to.- Returns:
thisassertion object.- Throws:
AssertionError- If the value is not before or equal to the date, time or date/time represented in parameter.- See Also:
-
isAfter
Verifies that the value is after a date value.Example where the assertion verifies that the value in the first
Columnof the firstRowof theTableis after a date value :assertThat(table).row().value().isAfter(DateValue.of(2007, 12, 23));Example where the assertion verifies that the value in the first
Columnof theRowat end point of the firstChangeis after a date value :assertThat(changes).change().rowAtEndPoint().value().isAfter(DateValue.of(2007, 12, 23));- Parameters:
date- The date value to compare to.- Returns:
thisassertion object.- Throws:
AssertionError- If the value is not after to the date value in parameter.- See Also:
-
isAfter
Verifies that the value is after a time value.Example where the assertion verifies that the value in the first
Columnof the firstRowof theTableis after a time value :assertThat(table).row().value().isAfter(TimeValue.of(21, 29, 30));Example where the assertion verifies that the value in the first
Columnof theRowat end point of the firstChangeis after a time value :assertThat(changes).change().rowAtEndPoint().value().isAfter(TimeValue.of(21, 29, 30));- Parameters:
time- The time value to compare to.- Returns:
thisassertion object.- Throws:
AssertionError- If the value is not after to the time value in parameter.- See Also:
-
isAfter
Verifies that the value is after a date/time value.Example where the assertion verifies that the value in the first
Columnof the firstRowof theTableis after a date/time value :assertThat(table).row().value().isAfter(DateTimeValue.of(DateValue.of(2007, 12, 23), TimeValue.of(21, 29)));Example where the assertion verifies that the value in the first
Columnof theRowat end point of the firstChangeis after a date/time value :assertThat(changes).change().rowAtEndPoint().value().isAfter(DateTimeValue.of(DateValue.of(2007, 12, 23), TimeValue.of(21, 29)));- Parameters:
dateTime- The date/time value to compare to.- Returns:
thisassertion object.- Throws:
AssertionError- If the value is not after to the date/time value in parameter.- See Also:
-
isAfter
Verifies that the value is after a date value.Example where the assertion verifies that the value in the first
Columnof the firstRowof theTableis after a date value :assertThat(table).row().value().isAfter(LocalDate.of(2007, 12, 23));Example where the assertion verifies that the value in the first
Columnof theRowat end point of the firstChangeis after a date value :assertThat(changes).change().rowAtEndPoint().value().isAfter(LocalDate.of(2007, 12, 23));- Parameters:
date- The date value to compare to.- Returns:
thisassertion object.- Throws:
AssertionError- If the value is not after to the date value in parameter.- See Also:
-
isAfter
Verifies that the value is after a time value.Example where the assertion verifies that the value in the first
Columnof the firstRowof theTableis after a time value :assertThat(table).row().value().isAfter(LocalTime.of(21, 29, 30));Example where the assertion verifies that the value in the first
Columnof theRowat end point of the firstChangeis after a time value :assertThat(changes).change().rowAtEndPoint().value().isAfter(LocalTime.of(21, 29, 30));- Parameters:
time- The time value to compare to.- Returns:
thisassertion object.- Throws:
AssertionError- If the value is not after to the time value in parameter.- See Also:
-
isAfter
Verifies that the value is after a date/time value.Example where the assertion verifies that the value in the first
Columnof the firstRowof theTableis after a date/time value :assertThat(table).row().value().isAfter(LocalDateTime.of(2007, 12, 23, 21, 29));Example where the assertion verifies that the value in the first
Columnof theRowat end point of the firstChangeis after a date/time value :assertThat(changes).change().rowAtEndPoint().value().isAfter(LocalDateTime.of(2007, 12, 23, 21, 29));- Parameters:
dateTime- The date/time value to compare to.- Returns:
thisassertion object.- Throws:
AssertionError- If the value is not after to the date/time value in parameter.- See Also:
-
isAfter
Verifies that the value is after a date, time or date/time represented by aString.Example where the assertion verifies that the value in the first
Columnof the firstRowof theTableis after a date represented by aString:assertThat(table).row().value().isAfter("2007-12-23");Example where the assertion verifies that the value in the first
Columnof theRowat end point of the firstChangeis after a date represented by aString:assertThat(changes).change().rowAtEndPoint().value().isAfter("2007-12-23");- Parameters:
expected- TheStringrepresenting a date, time or date/time to compare to.- Returns:
thisassertion object.- Throws:
AssertionError- If the value is not after the date, time or date/time represented in parameter.- See Also:
-
isAfterOrEqualTo
Verifies that the value is after or equal to a date value.Example where the assertion verifies that the value in the first
Columnof the firstRowof theTableis after or equal to a date value :assertThat(table).row().value().isAfterOrEqualTo(DateValue.of(2007, 12, 23));Example where the assertion verifies that the value in the first
Columnof theRowat end point of the firstChangeis after or equal to a date value :assertThat(changes).change().rowAtEndPoint().value().isAfterOrEqualTo(DateValue.of(2007, 12, 23));- Parameters:
date- The date value to compare to.- Returns:
thisassertion object.- Throws:
AssertionError- If the value is not after or equal to the time value in parameter.- See Also:
-
isAfterOrEqualTo
Verifies that the value is after or equal to a time value.Example where the assertion verifies that the value in the first
Columnof the firstRowof theTableis after or equal to a time value :assertThat(table).row().value().isAfterOrEqualTo(TimeValue.of(21, 29, 30));Example where the assertion verifies that the value in the first
Columnof theRowat end point of the firstChangeis after or equal to a time value :assertThat(changes).change().rowAtEndPoint().value().isAfterOrEqualTo(TimeValue.of(21, 29, 30));- Parameters:
time- The time value to compare to.- Returns:
thisassertion object.- Throws:
AssertionError- If the value is not after or equal to the time value in parameter.- See Also:
-
isAfterOrEqualTo
Verifies that the value is after or equal to a date/time value.Example where the assertion verifies that the value in the first
Columnof the firstRowof theTableis after or equal to a date/time value :assertThat(table).row().value().isAfterOrEqualTo(DateTimeValue.of(DateValue.of(2007, 12, 23), TimeValue.of(21, 29)));Example where the assertion verifies that the value in the first
Columnof theRowat end point of the firstChangeis after or equal to a date/time value :assertThat(changes).change().rowAtEndPoint().value().isAfterOrEqualTo(DateTimeValue.of(DateValue.of(2007, 12, 23), TimeValue.of(21, 29)));- Parameters:
dateTime- The date/time value to compare to.- Returns:
thisassertion object.- Throws:
AssertionError- If the value is not after or equal to the date/time value in parameter.- See Also:
-
isAfterOrEqualTo
Verifies that the value is after or equal to a date value.Example where the assertion verifies that the value in the first
Columnof the firstRowof theTableis after or equal to a date value :assertThat(table).row().value().isAfterOrEqualTo(LocalDate.of(2007, 12, 23));Example where the assertion verifies that the value in the first
Columnof theRowat end point of the firstChangeis after or equal to a date value :assertThat(changes).change().rowAtEndPoint().value().isAfterOrEqualTo(LocalDate.of(2007, 12, 23));- Parameters:
date- The date value to compare to.- Returns:
thisassertion object.- Throws:
AssertionError- If the value is not after or equal to the time value in parameter.- See Also:
-
isAfterOrEqualTo
Verifies that the value is after or equal to a time value.Example where the assertion verifies that the value in the first
Columnof the firstRowof theTableis after or equal to a time value :assertThat(table).row().value().isAfterOrEqualTo(LocalTime.of(21, 29, 30));Example where the assertion verifies that the value in the first
Columnof theRowat end point of the firstChangeis after or equal to a time value :assertThat(changes).change().rowAtEndPoint().value().isAfterOrEqualTo(LocalTime.of(21, 29, 30));- Parameters:
time- The time value to compare to.- Returns:
thisassertion object.- Throws:
AssertionError- If the value is not after or equal to the time value in parameter.- See Also:
-
isAfterOrEqualTo
Verifies that the value is after or equal to a date/time value.Example where the assertion verifies that the value in the first
Columnof the firstRowof theTableis after or equal to a date/time value :assertThat(table).row().value().isAfterOrEqualTo(LocalDateTime.of(2007, 12, 23, 21, 29));Example where the assertion verifies that the value in the first
Columnof theRowat end point of the firstChangeis after or equal to a date/time value :assertThat(changes).change().rowAtEndPoint().value().isAfterOrEqualTo(LocalDateTime.of(2007, 12, 23, 21, 29));- Parameters:
dateTime- The date/time value to compare to.- Returns:
thisassertion object.- Throws:
AssertionError- If the value is not after or equal to the date/time value in parameter.- See Also:
-
isAfterOrEqualTo
Verifies that the value is after or equal to a date, time or date/time represented by aString.Example where the assertion verifies that the value in the first
Columnof the firstRowof theTableis after or equal to a date represented by aString:assertThat(table).row().value().isAfterOrEqualTo("2007-12-23");Example where the assertion verifies that the value in the first
Columnof theRowat end point of the firstChangeis after or equal to a date represented by aString:assertThat(changes).change().rowAtEndPoint().value().isAfterOrEqualTo("2007-12-23");- Parameters:
expected- TheStringrepresenting a date, time or date/time to compare to.- Returns:
thisassertion object.- Throws:
AssertionError- If the value is not after or equal to the date, time or date/time represented in parameter.- See Also:
-