T - The "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation"
for more details.public interface AssertOnValueChronology<T extends AssertOnValueChronology<T>>
| Modifier and Type | Method and Description |
|---|---|
T |
isAfter(DateTimeValue dateTime)
Verifies that the value is after a date/time value.
|
T |
isAfter(DateValue date)
Verifies that the value is after a date value.
|
T |
isAfter(String expected)
Verifies that the value is after a date, time or date/time represented by a
String. |
T |
isAfter(TimeValue time)
Verifies that the value is after a time value.
|
T |
isAfterOrEqualTo(DateTimeValue dateTime)
Verifies that the value is after or equal to a date/time value.
|
T |
isAfterOrEqualTo(DateValue date)
Verifies that the value is after or equal to a date value.
|
T |
isAfterOrEqualTo(String expected)
Verifies that the value is after or equal to a date, time or date/time represented by a
String. |
T |
isAfterOrEqualTo(TimeValue time)
Verifies that the value is after or equal to a time value.
|
T |
isBefore(DateTimeValue dateTime)
Verifies that the value is before a date/time value.
|
T |
isBefore(DateValue date)
Verifies that the value is before a date value.
|
T |
isBefore(String expected)
Verifies that the value is before a date, time or date/time represented by a
String. |
T |
isBefore(TimeValue time)
Verifies that the value is before a time value.
|
T |
isBeforeOrEqualTo(DateTimeValue dateTime)
Verifies that the value is before or equal to a date/time value.
|
T |
isBeforeOrEqualTo(DateValue date)
Verifies that the value is before or equal to a date value.
|
T |
isBeforeOrEqualTo(String expected)
Verifies that the value is before or equal to a date, time or date/time represented by a
String. |
T |
isBeforeOrEqualTo(TimeValue time)
Verifies that the value is before or equal to a time value.
|
T isBefore(DateValue date)
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));
date - The date value to compare to.this assertion object.AssertionError - If the value is not before to the date value in parameter.AbstractValueAssert.isBefore(org.assertj.db.type.DateValue),
AbstractAssertWithValues.isBefore(org.assertj.db.type.DateValue)T isBefore(TimeValue time)
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(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 time value :
assertThat(changes).change().rowAtEndPoint().value().isBefore(TimeValue.of(2007, 12, 23));
time - The time value to compare to.this assertion object.AssertionError - If the value is not before to the time value in parameter.AbstractValueAssert.isBefore(org.assertj.db.type.TimeValue),
AbstractAssertWithValues.isBefore(org.assertj.db.type.TimeValue)T isBefore(DateTimeValue dateTime)
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)));
dateTime - The date/time value to compare to.this assertion object.AssertionError - If the value is not before to the date/time value in parameter.AbstractValueAssert.isBefore(org.assertj.db.type.DateTimeValue),
AbstractAssertWithValues.isBefore(org.assertj.db.type.DateTimeValue)T isBefore(String expected)
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");
expected - The String representing a date, time or date/time to compare to.this assertion object.AssertionError - If the value is not before the date, time or date/time represented in parameter.AbstractValueAssert.isBefore(String),
AbstractAssertWithValues.isBefore(String)T isBeforeOrEqualTo(DateValue date)
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));
date - The date value to compare to.this assertion object.AssertionError - If the value is not before or equal to the date value in parameter.AbstractValueAssert.isBeforeOrEqualTo(org.assertj.db.type.DateValue),
AbstractAssertWithValues.isBeforeOrEqualTo(org.assertj.db.type.DateValue)T isBeforeOrEqualTo(TimeValue time)
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(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 time value :
assertThat(changes).change().rowAtEndPoint().value().isBeforeOrEqualTo(TimeValue.of(2007, 12, 23));
time - The time value to compare to.this assertion object.AssertionError - If the value is not before or equal to the time value in parameter.AbstractValueAssert.isBeforeOrEqualTo(org.assertj.db.type.TimeValue),
AbstractAssertWithValues.isBeforeOrEqualTo(org.assertj.db.type.TimeValue)T isBeforeOrEqualTo(DateTimeValue dateTime)
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)));
dateTime - The date/time value to compare to.this assertion object.AssertionError - If the value is not before or equal to the date/time value in parameter.AbstractValueAssert.isBeforeOrEqualTo(org.assertj.db.type.DateTimeValue),
AbstractAssertWithValues.isBeforeOrEqualTo(org.assertj.db.type.DateTimeValue)T isBeforeOrEqualTo(String expected)
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");
expected - The String representing a date, time or date/time to compare to.this assertion object.AssertionError - If the value is not before or equal to the date, time or date/time represented in parameter.AbstractValueAssert.isBeforeOrEqualTo(String),
AbstractAssertWithValues.isBeforeOrEqualTo(String)T isAfter(DateValue date)
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));
date - The date value to compare to.this assertion object.AssertionError - If the value is not after to the date value in parameter.AbstractValueAssert.isAfter(org.assertj.db.type.DateValue),
AbstractAssertWithValues.isAfter(org.assertj.db.type.DateValue)T isAfter(TimeValue time)
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(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 time value :
assertThat(changes).change().rowAtEndPoint().value().isAfter(TimeValue.of(2007, 12, 23));
time - The time value to compare to.this assertion object.AssertionError - If the value is not after to the time value in parameter.AbstractValueAssert.isAfter(org.assertj.db.type.TimeValue),
AbstractAssertWithValues.isAfter(org.assertj.db.type.TimeValue)T isAfter(DateTimeValue dateTime)
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)));
dateTime - The date/time value to compare to.this assertion object.AssertionError - If the value is not after to the date/time value in parameter.AbstractValueAssert.isAfter(org.assertj.db.type.DateTimeValue),
AbstractAssertWithValues.isAfter(org.assertj.db.type.DateTimeValue)T isAfter(String expected)
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");
expected - The String representing a date, time or date/time to compare to.this assertion object.AssertionError - If the value is not after the date, time or date/time represented in parameter.AbstractValueAssert.isAfter(String),
AbstractAssertWithValues.isAfter(String)T isAfterOrEqualTo(DateValue date)
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));
date - The date value to compare to.this assertion object.AssertionError - If the value is not after or equal to the time value in parameter.AbstractValueAssert.isAfterOrEqualTo(org.assertj.db.type.DateValue),
AbstractAssertWithValues.isAfterOrEqualTo(org.assertj.db.type.DateValue)T isAfterOrEqualTo(TimeValue time)
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(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 time value :
assertThat(changes).change().rowAtEndPoint().value().isAfterOrEqualTo(TimeValue.of(2007, 12, 23));
time - The time value to compare to.this assertion object.AssertionError - If the value is not after or equal to the time value in parameter.AbstractValueAssert.isAfterOrEqualTo(org.assertj.db.type.TimeValue),
AbstractAssertWithValues.isAfterOrEqualTo(org.assertj.db.type.TimeValue)T isAfterOrEqualTo(DateTimeValue dateTime)
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)));
dateTime - The date/time value to compare to.this assertion object.AssertionError - If the value is not after or equal to the date/time value in parameter.AbstractValueAssert.isAfterOrEqualTo(org.assertj.db.type.DateTimeValue),
AbstractAssertWithValues.isAfterOrEqualTo(org.assertj.db.type.DateTimeValue)T isAfterOrEqualTo(String expected)
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");
expected - The String representing a date, time or date/time to compare to.this assertion object.AssertionError - If the value is not after or equal to the date, time or date/time represented in parameter.AbstractValueAssert.isAfterOrEqualTo(String),
AbstractAssertWithValues.isAfterOrEqualTo(String)Copyright © 2015 AssertJ. All Rights Reserved.