Class AssertionsOnValueChronology

java.lang.Object
org.assertj.db.api.assertions.impl.AssertionsOnValueChronology

public class AssertionsOnValueChronology extends Object
Implements the assertion methods on the chronology of a value.
Author:
Régis Pouiller
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    static <A extends AbstractAssert<?>>
    A
    isAfter(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, String expected)
    Verifies that the value is after a date, time or date/time represented by a String.
    static <A extends AbstractAssert<?>>
    A
    isAfter(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, DateTimeValue dateTime)
    Verifies that the value is after a date/time value.
    static <A extends AbstractAssert<?>>
    A
    isAfter(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, DateValue date)
    Verifies that the value is after a date value.
    static <A extends AbstractAssert<?>>
    A
    isAfter(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, TimeValue time)
    Verifies that the value is after a time value.
    static <A extends AbstractAssert<?>>
    A
    isAfterOrEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, String expected)
    Verifies that the value is after or equal to a date, time or date/time represented by a String.
    static <A extends AbstractAssert<?>>
    A
    isAfterOrEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, DateTimeValue dateTime)
    Verifies that the value is after or equal to a date/time value.
    static <A extends AbstractAssert<?>>
    A
    isAfterOrEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, DateValue date)
    Verifies that the value is after or equal to a date value.
    static <A extends AbstractAssert<?>>
    A
    isAfterOrEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, TimeValue time)
    Verifies that the value is after or equal to a time value.
    static <A extends AbstractAssert<?>>
    A
    isBefore(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, String expected)
    Verifies that the value is before a date, time or date/time represented by a String.
    static <A extends AbstractAssert<?>>
    A
    isBefore(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, DateTimeValue dateTime)
    Verifies that the value is before a date/time value.
    static <A extends AbstractAssert<?>>
    A
    isBefore(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, DateValue date)
    Verifies that the value is before a date value.
    static <A extends AbstractAssert<?>>
    A
    isBefore(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, TimeValue time)
    Verifies that the value is before a time value.
    static <A extends AbstractAssert<?>>
    A
    isBeforeOrEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, String expected)
    Verifies that the value is before or equal to a date, time or date/time represented by a String.
    static <A extends AbstractAssert<?>>
    A
    isBeforeOrEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, DateTimeValue dateTime)
    Verifies that the value is before or equal to a date/time value.
    static <A extends AbstractAssert<?>>
    A
    isBeforeOrEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, DateValue date)
    Verifies that the value is before or equal to a date value.
    static <A extends AbstractAssert<?>>
    A
    isBeforeOrEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, TimeValue time)
    Verifies that the value is before or equal to a time value.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • isBefore

      public static <A extends AbstractAssert<?>> A isBefore(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, DateValue date)
      Verifies that the value is before a date value.
      Type Parameters:
      A - The type of the assertion which call this method.
      Parameters:
      assertion - The assertion which call this method.
      info - Writable information about an assertion.
      value - The value.
      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.
    • isBefore

      public static <A extends AbstractAssert<?>> A isBefore(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, TimeValue time)
      Verifies that the value is before a time value.
      Type Parameters:
      A - The type of the assertion which call this method.
      Parameters:
      assertion - The assertion which call this method.
      info - Writable information about an assertion.
      value - The value.
      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.
    • isBefore

      public static <A extends AbstractAssert<?>> A isBefore(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, DateTimeValue dateTime)
      Verifies that the value is before a date/time value.
      Type Parameters:
      A - The type of the assertion which call this method.
      Parameters:
      assertion - The assertion which call this method.
      info - Writable information about an assertion.
      value - The value.
      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.
    • isBefore

      public static <A extends AbstractAssert<?>> A isBefore(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, String expected)
      Verifies that the value is before a date, time or date/time represented by a String.
      Type Parameters:
      A - The type of the assertion which call this method.
      Parameters:
      assertion - The assertion which call this method.
      info - Writable information about an assertion.
      value - The value.
      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.
    • isBeforeOrEqualTo

      public static <A extends AbstractAssert<?>> A isBeforeOrEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, DateValue date)
      Verifies that the value is before or equal to a date value.
      Type Parameters:
      A - The type of the assertion which call this method.
      Parameters:
      assertion - The assertion which call this method.
      info - Writable information about an assertion.
      value - The value.
      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.
    • isBeforeOrEqualTo

      public static <A extends AbstractAssert<?>> A isBeforeOrEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, TimeValue time)
      Verifies that the value is before or equal to a time value.
      Type Parameters:
      A - The type of the assertion which call this method.
      Parameters:
      assertion - The assertion which call this method.
      info - Writable information about an assertion.
      value - The value.
      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.
    • isBeforeOrEqualTo

      public static <A extends AbstractAssert<?>> A isBeforeOrEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, DateTimeValue dateTime)
      Verifies that the value is before or equal to a date/time value.
      Type Parameters:
      A - The type of the assertion which call this method.
      Parameters:
      assertion - The assertion which call this method.
      info - Writable information about an assertion.
      value - The value.
      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.
    • isBeforeOrEqualTo

      public static <A extends AbstractAssert<?>> A isBeforeOrEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, String expected)
      Verifies that the value is before or equal to a date, time or date/time represented by a String.
      Type Parameters:
      A - The type of the assertion which call this method.
      Parameters:
      assertion - The assertion which call this method.
      info - Writable information about an assertion.
      value - The value.
      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.
    • isAfter

      public static <A extends AbstractAssert<?>> A isAfter(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, DateValue date)
      Verifies that the value is after a date value.
      Type Parameters:
      A - The type of the assertion which call this method.
      Parameters:
      assertion - The assertion which call this method.
      info - Writable information about an assertion.
      value - The value.
      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.
    • isAfter

      public static <A extends AbstractAssert<?>> A isAfter(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, TimeValue time)
      Verifies that the value is after a time value.
      Type Parameters:
      A - The type of the assertion which call this method.
      Parameters:
      assertion - The assertion which call this method.
      info - Writable information about an assertion.
      value - The value.
      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.
    • isAfter

      public static <A extends AbstractAssert<?>> A isAfter(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, DateTimeValue dateTime)
      Verifies that the value is after a date/time value.
      Type Parameters:
      A - The type of the assertion which call this method.
      Parameters:
      assertion - The assertion which call this method.
      info - Writable information about an assertion.
      value - The value.
      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.
    • isAfter

      public static <A extends AbstractAssert<?>> A isAfter(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, String expected)
      Verifies that the value is after a date, time or date/time represented by a String.
      Type Parameters:
      A - The type of the assertion which call this method.
      Parameters:
      assertion - The assertion which call this method.
      info - Writable information about an assertion.
      value - The value.
      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.
    • isAfterOrEqualTo

      public static <A extends AbstractAssert<?>> A isAfterOrEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, DateValue date)
      Verifies that the value is after or equal to a date value.
      Type Parameters:
      A - The type of the assertion which call this method.
      Parameters:
      assertion - The assertion which call this method.
      info - Writable information about an assertion.
      value - The value.
      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.
    • isAfterOrEqualTo

      public static <A extends AbstractAssert<?>> A isAfterOrEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, TimeValue time)
      Verifies that the value is after or equal to a time value.
      Type Parameters:
      A - The type of the assertion which call this method.
      Parameters:
      assertion - The assertion which call this method.
      info - Writable information about an assertion.
      value - The value.
      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.
    • isAfterOrEqualTo

      public static <A extends AbstractAssert<?>> A isAfterOrEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, DateTimeValue dateTime)
      Verifies that the value is after or equal to a date/time value.
      Type Parameters:
      A - The type of the assertion which call this method.
      Parameters:
      assertion - The assertion which call this method.
      info - Writable information about an assertion.
      value - The value.
      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.
    • isAfterOrEqualTo

      public static <A extends AbstractAssert<?>> A isAfterOrEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, String expected)
      Verifies that the value is after or equal to a date, time or date/time represented by a String.
      Type Parameters:
      A - The type of the assertion which call this method.
      Parameters:
      assertion - The assertion which call this method.
      info - Writable information about an assertion.
      value - The value.
      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.