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

public interface AssertOnValueChronology<T extends AssertOnValueChronology<T>>
Defines the assertion methods on the chronology of a value.
Author:
Régis Pouiller
  • Method Details

    • isBefore

      T isBefore(DateValue date)
      Verifies that the value is before a date value.

      Example where the assertion verifies that the value in the first Column of the first Row of the Table is 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 Column of the Row at end point of the first Change is before a date value :

       
       assertThat(changes).change().rowAtEndPoint().value().isBefore(DateValue.of(2007, 12, 23));
       
       
      Parameters:
      date - The date value to compare to.
      Returns:
      this assertion object.
      Throws:
      AssertionError - If the value is not before to the date value in parameter.
      See Also:
    • isBefore

      T isBefore(TimeValue time)
      Verifies that the value is before a time value.

      Example where the assertion verifies that the value in the first Column of the first Row of the Table is 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 Column of the Row at end point of the first Change is before a time value :

       
       assertThat(changes).change().rowAtEndPoint().value().isBefore(TimeValue.of(21, 29, 30));
       
       
      Parameters:
      time - The time value to compare to.
      Returns:
      this assertion object.
      Throws:
      AssertionError - If the value is not before to the time value in parameter.
      See Also:
    • isBefore

      T isBefore(DateTimeValue dateTime)
      Verifies that the value is before a date/time value.

      Example where the assertion verifies that the value in the first Column of the first Row of the Table is 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 Column of the Row at end point of the first Change is 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:
      this assertion object.
      Throws:
      AssertionError - If the value is not before to the date/time value in parameter.
      See Also:
    • isBefore

      T isBefore(LocalDate date)
      Verifies that the value is before a date value.

      Example where the assertion verifies that the value in the first Column of the first Row of the Table is 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 Column of the Row at end point of the first Change is before a date value :

       
       assertThat(changes).change().rowAtEndPoint().value().isBefore(LocalDate.of(2007, 12, 23));
       
       
      Parameters:
      date - The date value to compare to.
      Returns:
      this assertion object.
      Throws:
      AssertionError - If the value is not before to the date value in parameter.
      See Also:
    • isBefore

      T isBefore(LocalTime time)
      Verifies that the value is before a time value.

      Example where the assertion verifies that the value in the first Column of the first Row of the Table is 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 Column of the Row at end point of the first Change is before a time value :

       
       assertThat(changes).change().rowAtEndPoint().value().isBefore(LocalTime.of(21, 29, 30));
       
       
      Parameters:
      time - The time value to compare to.
      Returns:
      this assertion object.
      Throws:
      AssertionError - If the value is not before to the time value in parameter.
      See Also:
    • isBefore

      T isBefore(LocalDateTime dateTime)
      Verifies that the value is before a date/time value.

      Example where the assertion verifies that the value in the first Column of the first Row of the Table is 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 Column of the Row at end point of the first Change is 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:
      this assertion object.
      Throws:
      AssertionError - If the value is not before to the date/time value in parameter.
      See Also:
    • isBefore

      T isBefore(String expected)
      Verifies that the value is before a date, time or date/time represented by a String.

      Example where the assertion verifies that the value in the first Column of the first Row of the Table is before a date represented by a String :

       
       assertThat(table).row().value().isBefore("2007-12-23");
       
       

      Example where the assertion verifies that the value in the first Column of the Row at end point of the first Change is before a date represented by a String :

       
       assertThat(changes).change().rowAtEndPoint().value().isBefore("2007-12-23");
       
       
      Parameters:
      expected - The String representing a date, time or date/time to compare to.
      Returns:
      this assertion object.
      Throws:
      AssertionError - If the value is not before the date, time or date/time represented in parameter.
      See Also:
    • isBeforeOrEqualTo

      T isBeforeOrEqualTo(DateValue date)
      Verifies that the value is before or equal to a date value.

      Example where the assertion verifies that the value in the first Column of the first Row of the Table is 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 Column of the Row at end point of the first Change is 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:
      this assertion object.
      Throws:
      AssertionError - If the value is not before or equal to the date value in parameter.
      See Also:
    • isBeforeOrEqualTo

      T isBeforeOrEqualTo(TimeValue time)
      Verifies that the value is before or equal to a time value.

      Example where the assertion verifies that the value in the first Column of the first Row of the Table is 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 Column of the Row at end point of the first Change is 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:
      this assertion object.
      Throws:
      AssertionError - If the value is not before or equal to the time value in parameter.
      See Also:
    • isBeforeOrEqualTo

      T isBeforeOrEqualTo(DateTimeValue dateTime)
      Verifies that the value is before or equal to a date/time value.

      Example where the assertion verifies that the value in the first Column of the first Row of the Table is 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 Column of the Row at end point of the first Change is 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:
      this assertion object.
      Throws:
      AssertionError - If the value is not before or equal to the date/time value in parameter.
      See Also:
    • isBeforeOrEqualTo

      T isBeforeOrEqualTo(LocalDate date)
      Verifies that the value is before or equal to a date value.

      Example where the assertion verifies that the value in the first Column of the first Row of the Table is 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 Column of the Row at end point of the first Change is 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:
      this assertion object.
      Throws:
      AssertionError - If the value is not before or equal to the date value in parameter.
      See Also:
    • isBeforeOrEqualTo

      T isBeforeOrEqualTo(LocalTime time)
      Verifies that the value is before or equal to a time value.

      Example where the assertion verifies that the value in the first Column of the first Row of the Table is 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 Column of the Row at end point of the first Change is 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:
      this assertion object.
      Throws:
      AssertionError - If the value is not before or equal to the time value in parameter.
      See Also:
    • isBeforeOrEqualTo

      T isBeforeOrEqualTo(LocalDateTime dateTime)
      Verifies that the value is before or equal to a date/time value.

      Example where the assertion verifies that the value in the first Column of the first Row of the Table is 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 Column of the Row at end point of the first Change is 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:
      this assertion object.
      Throws:
      AssertionError - If the value is not before or equal to the date/time value in parameter.
      See Also:
    • isBeforeOrEqualTo

      T isBeforeOrEqualTo(String expected)
      Verifies that the value is before or equal to a date, time or date/time represented by a String.

      Example where the assertion verifies that the value in the first Column of the first Row of the Table is before or equal to a date represented by a String :

       
       assertThat(table).row().value().isBeforeOrEqualTo("2007-12-23");
       
       

      Example where the assertion verifies that the value in the first Column of the Row at end point of the first Change is before or equal to a date represented by a String :

       
       assertThat(changes).change().rowAtEndPoint().value().isBeforeOrEqualTo("2007-12-23");
       
       
      Parameters:
      expected - The String representing a date, time or date/time to compare to.
      Returns:
      this assertion object.
      Throws:
      AssertionError - If the value is not before or equal to the date, time or date/time represented in parameter.
      See Also:
    • isAfter

      T isAfter(DateValue date)
      Verifies that the value is after a date value.

      Example where the assertion verifies that the value in the first Column of the first Row of the Table is 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 Column of the Row at end point of the first Change is after a date value :

       
       assertThat(changes).change().rowAtEndPoint().value().isAfter(DateValue.of(2007, 12, 23));
       
       
      Parameters:
      date - The date value to compare to.
      Returns:
      this assertion object.
      Throws:
      AssertionError - If the value is not after to the date value in parameter.
      See Also:
    • isAfter

      T isAfter(TimeValue time)
      Verifies that the value is after a time value.

      Example where the assertion verifies that the value in the first Column of the first Row of the Table is 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 Column of the Row at end point of the first Change is after a time value :

       
       assertThat(changes).change().rowAtEndPoint().value().isAfter(TimeValue.of(21, 29, 30));
       
       
      Parameters:
      time - The time value to compare to.
      Returns:
      this assertion object.
      Throws:
      AssertionError - If the value is not after to the time value in parameter.
      See Also:
    • isAfter

      T isAfter(DateTimeValue dateTime)
      Verifies that the value is after a date/time value.

      Example where the assertion verifies that the value in the first Column of the first Row of the Table is 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 Column of the Row at end point of the first Change is 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:
      this assertion object.
      Throws:
      AssertionError - If the value is not after to the date/time value in parameter.
      See Also:
    • isAfter

      T isAfter(LocalDate date)
      Verifies that the value is after a date value.

      Example where the assertion verifies that the value in the first Column of the first Row of the Table is 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 Column of the Row at end point of the first Change is after a date value :

       
       assertThat(changes).change().rowAtEndPoint().value().isAfter(LocalDate.of(2007, 12, 23));
       
       
      Parameters:
      date - The date value to compare to.
      Returns:
      this assertion object.
      Throws:
      AssertionError - If the value is not after to the date value in parameter.
      See Also:
    • isAfter

      T isAfter(LocalTime time)
      Verifies that the value is after a time value.

      Example where the assertion verifies that the value in the first Column of the first Row of the Table is 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 Column of the Row at end point of the first Change is after a time value :

       
       assertThat(changes).change().rowAtEndPoint().value().isAfter(LocalTime.of(21, 29, 30));
       
       
      Parameters:
      time - The time value to compare to.
      Returns:
      this assertion object.
      Throws:
      AssertionError - If the value is not after to the time value in parameter.
      See Also:
    • isAfter

      T isAfter(LocalDateTime dateTime)
      Verifies that the value is after a date/time value.

      Example where the assertion verifies that the value in the first Column of the first Row of the Table is 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 Column of the Row at end point of the first Change is 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:
      this assertion object.
      Throws:
      AssertionError - If the value is not after to the date/time value in parameter.
      See Also:
    • isAfter

      T isAfter(String expected)
      Verifies that the value is after a date, time or date/time represented by a String.

      Example where the assertion verifies that the value in the first Column of the first Row of the Table is after a date represented by a String :

       
       assertThat(table).row().value().isAfter("2007-12-23");
       
       

      Example where the assertion verifies that the value in the first Column of the Row at end point of the first Change is after a date represented by a String :

       
       assertThat(changes).change().rowAtEndPoint().value().isAfter("2007-12-23");
       
       
      Parameters:
      expected - The String representing a date, time or date/time to compare to.
      Returns:
      this assertion object.
      Throws:
      AssertionError - If the value is not after the date, time or date/time represented in parameter.
      See Also:
    • isAfterOrEqualTo

      T isAfterOrEqualTo(DateValue date)
      Verifies that the value is after or equal to a date value.

      Example where the assertion verifies that the value in the first Column of the first Row of the Table is 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 Column of the Row at end point of the first Change is 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:
      this assertion object.
      Throws:
      AssertionError - If the value is not after or equal to the time value in parameter.
      See Also:
    • isAfterOrEqualTo

      T isAfterOrEqualTo(TimeValue time)
      Verifies that the value is after or equal to a time value.

      Example where the assertion verifies that the value in the first Column of the first Row of the Table is 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 Column of the Row at end point of the first Change is 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:
      this assertion object.
      Throws:
      AssertionError - If the value is not after or equal to the time value in parameter.
      See Also:
    • isAfterOrEqualTo

      T isAfterOrEqualTo(DateTimeValue dateTime)
      Verifies that the value is after or equal to a date/time value.

      Example where the assertion verifies that the value in the first Column of the first Row of the Table is 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 Column of the Row at end point of the first Change is 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:
      this assertion object.
      Throws:
      AssertionError - If the value is not after or equal to the date/time value in parameter.
      See Also:
    • isAfterOrEqualTo

      T isAfterOrEqualTo(LocalDate date)
      Verifies that the value is after or equal to a date value.

      Example where the assertion verifies that the value in the first Column of the first Row of the Table is 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 Column of the Row at end point of the first Change is 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:
      this assertion object.
      Throws:
      AssertionError - If the value is not after or equal to the time value in parameter.
      See Also:
    • isAfterOrEqualTo

      T isAfterOrEqualTo(LocalTime time)
      Verifies that the value is after or equal to a time value.

      Example where the assertion verifies that the value in the first Column of the first Row of the Table is 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 Column of the Row at end point of the first Change is 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:
      this assertion object.
      Throws:
      AssertionError - If the value is not after or equal to the time value in parameter.
      See Also:
    • isAfterOrEqualTo

      T isAfterOrEqualTo(LocalDateTime dateTime)
      Verifies that the value is after or equal to a date/time value.

      Example where the assertion verifies that the value in the first Column of the first Row of the Table is 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 Column of the Row at end point of the first Change is 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:
      this assertion object.
      Throws:
      AssertionError - If the value is not after or equal to the date/time value in parameter.
      See Also:
    • isAfterOrEqualTo

      T isAfterOrEqualTo(String expected)
      Verifies that the value is after or equal to a date, time or date/time represented by a String.

      Example where the assertion verifies that the value in the first Column of the first Row of the Table is after or equal to a date represented by a String :

       
       assertThat(table).row().value().isAfterOrEqualTo("2007-12-23");
       
       

      Example where the assertion verifies that the value in the first Column of the Row at end point of the first Change is after or equal to a date represented by a String :

       
       assertThat(changes).change().rowAtEndPoint().value().isAfterOrEqualTo("2007-12-23");
       
       
      Parameters:
      expected - The String representing a date, time or date/time to compare to.
      Returns:
      this assertion object.
      Throws:
      AssertionError - If the value is not after or equal to the date, time or date/time represented in parameter.
      See Also: