Class AssertionsOnValueChronology
java.lang.Object
org.assertj.db.api.assertions.impl.AssertionsOnValueChronology
Implements the assertion methods on the chronology of a value.
- Author:
- Régis Pouiller
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic <A extends AbstractAssert<?>>
AVerifies that the value is after a date, time or date/time represented by aString.static <A extends AbstractAssert<?>>
AisAfter(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<?>>
AVerifies that the value is after a date value.static <A extends AbstractAssert<?>>
AVerifies that the value is after a time value.static <A extends AbstractAssert<?>>
AisAfterOrEqualTo(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 aString.static <A extends AbstractAssert<?>>
AisAfterOrEqualTo(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<?>>
AisAfterOrEqualTo(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<?>>
AisAfterOrEqualTo(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<?>>
AisBefore(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 aString.static <A extends AbstractAssert<?>>
AisBefore(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<?>>
AVerifies that the value is before a date value.static <A extends AbstractAssert<?>>
AVerifies that the value is before a time value.static <A extends AbstractAssert<?>>
AisBeforeOrEqualTo(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 aString.static <A extends AbstractAssert<?>>
AisBeforeOrEqualTo(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<?>>
AisBeforeOrEqualTo(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<?>>
AisBeforeOrEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, TimeValue time) Verifies that the value is before or equal to a time value.
-
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:
thisassertion 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:
thisassertion 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:
thisassertion 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 aString.- 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- 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.
-
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:
thisassertion 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:
thisassertion 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:
thisassertion 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 aString.- 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- 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.
-
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:
thisassertion 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:
thisassertion 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:
thisassertion 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 aString.- 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- 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.
-
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:
thisassertion 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:
thisassertion 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:
thisassertion 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 aString.- 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- 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.
-