E - The "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation"
for more details.O - The type of the assertion class of Origin.public abstract class AbstractAssertWithValues<E extends AbstractAssertWithValues<E,O>,O extends OriginWithColumnsAndRowsFromChange<ChangesAssert,ChangeAssert,ChangeColumnAssert,ChangeRowAssert>> extends AbstractAssertWithOriginWithColumnsAndRowsFromChange<E,O> implements ValueElement, AssertOnValueClass<E>, AssertOnValueType<E>, AssertOnValueNullity<E>, AssertOnValueEquality<E>, AssertOnValueInequality<E>, AssertOnValueComparison<E>, AssertOnValueChronology<E>, AssertOnValueCloseness<E>
Change assertions.| Modifier and Type | Field and Description |
|---|---|
protected Value |
value
The actual value on which the assertion is.
|
origininfo, myself| Modifier and Type | Method and Description |
|---|---|
E |
isAfter(DateTimeValue dateTime)
Verifies that the value is after a date/time value.
|
E |
isAfter(DateValue date)
Verifies that the value is after a date value.
|
E |
isAfter(String expected)
Verifies that the value is after a date, time or date/time represented by a
String. |
E |
isAfter(TimeValue time)
Verifies that the value is after a time value.
|
E |
isAfterOrEqualTo(DateTimeValue dateTime)
Verifies that the value is after or equal to a date/time value.
|
E |
isAfterOrEqualTo(DateValue date)
Verifies that the value is after or equal to a date value.
|
E |
isAfterOrEqualTo(String expected)
Verifies that the value is after or equal to a date, time or date/time represented by a
String. |
E |
isAfterOrEqualTo(TimeValue time)
Verifies that the value is after or equal to a time value.
|
E |
isBefore(DateTimeValue dateTime)
Verifies that the value is before a date/time value.
|
E |
isBefore(DateValue date)
Verifies that the value is before a date value.
|
E |
isBefore(String expected)
Verifies that the value is before a date, time or date/time represented by a
String. |
E |
isBefore(TimeValue time)
Verifies that the value is before a time value.
|
E |
isBeforeOrEqualTo(DateTimeValue dateTime)
Verifies that the value is before or equal to a date/time value.
|
E |
isBeforeOrEqualTo(DateValue date)
Verifies that the value is before or equal to a date value.
|
E |
isBeforeOrEqualTo(String expected)
Verifies that the value is before or equal to a date, time or date/time represented by a
String. |
E |
isBeforeOrEqualTo(TimeValue time)
Verifies that the value is before or equal to a time value.
|
E |
isBoolean()
Verifies that the value is a boolean.
|
E |
isBytes()
Verifies that the value is a array of bytes.
|
E |
isCloseTo(DateTimeValue expected,
DateTimeValue tolerance)
Verifies that the value is close to a date/time.
|
E |
isCloseTo(DateTimeValue expected,
DateValue tolerance)
Verifies that the value is close to a date/time.
|
E |
isCloseTo(DateTimeValue expected,
TimeValue tolerance)
Verifies that the value is close to a date/time.
|
E |
isCloseTo(DateValue expected,
DateTimeValue tolerance)
Verifies that the value is close to a date.
|
E |
isCloseTo(DateValue expected,
DateValue tolerance)
Verifies that the value is close to a date.
|
E |
isCloseTo(DateValue expected,
TimeValue tolerance)
Verifies that the value is close to a date.
|
E |
isCloseTo(Number expected,
Number tolerance)
Verifies that the value is close to a number.
|
E |
isCloseTo(TimeValue expected,
TimeValue tolerance)
Verifies that the value is close to a time.
|
E |
isDate()
Verifies that the value is a date.
|
E |
isDateTime()
Verifies that the value is a date/time.
|
E |
isEqualTo(Boolean expected)
Verifies that the value is equal to a boolean.
|
E |
isEqualTo(byte[] expected)
Verifies that the value is equal to a array of bytes.
|
E |
isEqualTo(Character expected)
Verifies that the value is equal to a character.
|
E |
isEqualTo(DateTimeValue expected)
Verifies that the value is equal to a date/time value.
|
E |
isEqualTo(DateValue expected)
Verifies that the value is equal to a date value.
|
E |
isEqualTo(Number expected)
Verifies that the value is equal to a number.
|
E |
isEqualTo(Object expected)
Verifies that the value is equal to a boolean.
|
E |
isEqualTo(String expected)
Verifies that the value is equal to a text.
|
E |
isEqualTo(TimeValue expected)
Verifies that the value is equal to a time value.
|
E |
isEqualTo(UUID expected)
Verifies that the value is equal to an UUID.
|
E |
isFalse()
Verifies that the value is equal to false boolean.
|
E |
isGreaterThan(Number expected)
Verifies that the value is greater than a number.
|
E |
isGreaterThanOrEqualTo(Number expected)
Verifies that the value is greater than or equal to a number.
|
E |
isLessThan(Number expected)
Verifies that the value is less than a number.
|
E |
isLessThanOrEqualTo(Number expected)
Verifies that the value is less than or equal to a number.
|
E |
isNotEqualTo(Boolean expected)
Verifies that the value is not equal to a boolean.
|
E |
isNotEqualTo(byte[] expected)
Verifies that the value is not equal to a array of bytes.
|
E |
isNotEqualTo(Character expected)
Verifies that the value is not equal to a character.
|
E |
isNotEqualTo(DateTimeValue expected)
Verifies that the value is not equal to a date/time value.
|
E |
isNotEqualTo(DateValue expected)
Verifies that the value is not equal to a date value.
|
E |
isNotEqualTo(Number expected)
Verifies that the value is not equal to a number.
|
E |
isNotEqualTo(Object expected)
Verifies that the value is not equal to a object.
|
E |
isNotEqualTo(String expected)
Verifies that the value is not equal to a text.
|
E |
isNotEqualTo(TimeValue expected)
Verifies that the value is not equal to a time value.
|
E |
isNotEqualTo(UUID expected)
Verifies that the value is not equal to an UUID.
|
E |
isNotNull()
Verifies that the value is not
null. |
E |
isNotZero()
Verifies that the value is not equal to zero.
|
E |
isNull()
Verifies that the value is
null. |
E |
isNumber()
Verifies that the value is a number.
|
E |
isOfAnyTypeIn(ValueType... expected)
Verifies that the type of the value is equal to one of the types in parameters.
|
E |
isOfClass(Class<?> expected)
Verifies that the class of the value is equal to the class in parameter.
|
E |
isOfType(ValueType expected)
Verifies that the type of the value is equal to the type in parameter.
|
E |
isText()
Verifies that the value is a text.
|
E |
isTime()
Verifies that the value is a time.
|
E |
isTrue()
Verifies that the value is equal to true boolean.
|
E |
isUUID()
Verifies that the value is an UUID.
|
E |
isZero()
Verifies that the value is equal to zero.
|
column, column, column, columnAmongTheModifiedOnes, columnAmongTheModifiedOnes, columnAmongTheModifiedOnes, rowAtEndPoint, rowAtStartPointchange, change, changeOfCreation, changeOfCreation, changeOfCreationOnTable, changeOfCreationOnTable, changeOfDeletion, changeOfDeletion, changeOfDeletionOnTable, changeOfDeletionOnTable, changeOfModification, changeOfModification, changeOfModificationOnTable, changeOfModificationOnTable, changeOnTable, changeOnTable, changeOnTableWithPks, ofAll, ofCreation, ofCreationOnTable, ofDeletion, ofDeletionOnTable, ofModification, ofModificationOnTable, onTablereturnToOriginas, as, describedAs, describedAs, getInfoprotected final Value value
public E isOfClass(Class<?> expected)
Example where the assertion verifies that the value in the Column called "title" of the second Row
of the Table is of class String :
assertThat(table).row(1).value("title").isOfClass(String.class);
Example where the assertion verifies that the value in the Column called "title" of the Row at end point
of the first Change is of class String :
assertThat(changes).change().rowAtEndPoint().value("title").isOfClass(String.class);
isOfClass in interface AssertOnValueClass<E extends AbstractAssertWithValues<E,O>>expected - The expected class to compare to.this assertion object.AbstractValueAssert.isOfClass(Class),
isOfClass(Class)public E isOfType(ValueType expected)
Example where the assertion verifies that the value in the Column called "title" of the second Row
of the Table is of type TEXT :
assertThat(table).row(1).value("title").isOfType(ValueType.TEXT);
Example where the assertion verifies that the value in the Column called "title" of the Row at end point
of the first Change is of type TEXT :
assertThat(changes).change().rowAtEndPoint().value("title").isOfType(ValueType.TEXT);
isOfType in interface AssertOnValueType<E extends AbstractAssertWithValues<E,O>>expected - The expected type to compare to.this assertion object.AbstractValueAssert.isOfType(org.assertj.db.type.ValueType),
isOfType(org.assertj.db.type.ValueType)public E isOfAnyTypeIn(ValueType... expected)
Example where the assertion verifies that the value in the Column called "title" of the second Row
of the Table is of type TEXT or of type NUMBER :
assertThat(table).row(1).value("title").isOfType(ValueType.TEXT, ValueType.NUMBER);
Example where the assertion verifies that the value in the Column called "title" of the Row at end point
of the first Change is of type TEXT or of type NUMBER :
assertThat(changes).change().rowAtEndPoint().value("title").isOfType(ValueType.TEXT, ValueType.NUMBER);
isOfAnyTypeIn in interface AssertOnValueType<E extends AbstractAssertWithValues<E,O>>expected - The expected types to compare to.this assertion object.AbstractValueAssert.isOfAnyTypeIn(org.assertj.db.type.ValueType...),
isOfAnyTypeIn(org.assertj.db.type.ValueType...)public E isNumber()
Example where the assertion verifies that the value in the Column called "year" of the first Row of
the Table is a number :
assertThat(table).row().value("year").isNumber();
Example where the assertion verifies that the value in the first Column of the Row at end point
of the first Change is a number :
assertThat(changes).change().rowAtEndPoint().value().isNumber();
This assertion method is equivalent to :
xxxxx.isOfType(ValueType.NUMBER);
isNumber in interface AssertOnValueType<E extends AbstractAssertWithValues<E,O>>this assertion object.ValueType.NUMBER,
AbstractValueAssert.isNumber(),
isNumber()public E isBoolean()
Example where the assertion verifies that the value in the first Column of the first Row of the
Table is a boolean :
assertThat(table).row().value().isBoolean();
Example where the assertion verifies that the value in the first Column of the Row at end point
of the first Change is a boolean :
assertThat(changes).change().rowAtEndPoint().value().isBoolean();
This assertion method is equivalent to :
xxxxx.isOfType(ValueType.BOOLEAN);
isBoolean in interface AssertOnValueType<E extends AbstractAssertWithValues<E,O>>this assertion object.ValueType.BOOLEAN,
AbstractValueAssert.isBoolean(),
isBoolean()public E isDate()
Example where the assertion verifies that the value in the Column called "birth" of the first Row
of the Table is a date :
assertThat(table).row().value("birth").isDate();
Example where the assertion verifies that the value in the first Column of the Row at end point
of the first Change is a date :
assertThat(changes).change().rowAtEndPoint().value().isDate();
This assertion method is equivalent to :
xxxxx.isOfType(ValueType.DATE);
isDate in interface AssertOnValueType<E extends AbstractAssertWithValues<E,O>>this assertion object.ValueType.DATE,
AbstractValueAssert.isDate(),
isDate()public E isTime()
Example where the assertion verifies that the value in the first Column of the first Row of the
Table is a time :
assertThat(table).row().value().isTime();
Example where the assertion verifies that the value in the first Column of the Row at end point
of the first Change is a time :
assertThat(changes).change().rowAtEndPoint().value().isTime();
This assertion method is equivalent to :
xxxxx.isOfType(ValueType.TIME);
isTime in interface AssertOnValueType<E extends AbstractAssertWithValues<E,O>>this assertion object.ValueType.TIME,
AbstractValueAssert.isTime(),
isTime()public E isDateTime()
Example where the assertion verifies that the value in the first Column of the first Row of the
Table is a date/time :
assertThat(table).row().value().isDateTime();
Example where the assertion verifies that the value in the first Column of the Row at end point
of the first Change is a date/time :
assertThat(changes).change().rowAtEndPoint().value().isDateTime();
This assertion method is equivalent to :
xxxxx.isOfType(ValueType.DATE_TIME);
isDateTime in interface AssertOnValueType<E extends AbstractAssertWithValues<E,O>>this assertion object.ValueType.DATE_TIME,
AbstractValueAssert.isDateTime(),
isDateTime()public E isBytes()
Example where the assertion verifies that the value in the first Column of the first Row of the
Table is a array of bytes :
assertThat(table).row().value().isBytes();
Example where the assertion verifies that the value in the first Column of the Row at end point
of the first Change is a array of bytes :
assertThat(changes).change().rowAtEndPoint().value().isBytes();
This assertion method is equivalent to :
xxxxx.isOfType(ValueType.BYTES);
isBytes in interface AssertOnValueType<E extends AbstractAssertWithValues<E,O>>this assertion object.ValueType.BYTES,
AbstractValueAssert.isBytes(),
isBytes()public E isText()
Example where the assertion verifies that the value in the Column called "title" of the first Row
of the Table is a text :
assertThat(table).row().value("title").isText();
Example where the assertion verifies that the value in the first Column of the Row at end point
of the first Change is a text :
assertThat(changes).change().rowAtEndPoint().value().isText();
This assertion method is equivalent to :
xxxxx.isOfType(ValueType.TEXT);
isText in interface AssertOnValueType<E extends AbstractAssertWithValues<E,O>>this assertion object.ValueType.TEXT,
AbstractValueAssert.isText(),
isText()public E isUUID()
Example where the assertion verifies that the value in the Column called id of the first Row
of the Table is an UUID :
assertThat(table).row().value("id").isUUID();
Example where the assertion verifies that the value in the first Column of the Row at end point
of the first Change is an UUID :
assertThat(changes).change().rowAtEndPoint().value().isUUID();
This assertion method is equivalent to :
xxxxx.isOfType(ValueType.UUID);
isUUID in interface AssertOnValueType<E extends AbstractAssertWithValues<E,O>>this assertion object.ValueType.UUID,
AbstractValueAssert.isUUID(),
isUUID()public E isNull()
null.
Example where the assertion verifies that the value in the first Column of the first Row of the
Table is null :
assertThat(table).row().value().isNull();
Example where the assertion verifies that the value in the first Column of the Row at end point
of the first Change is null :
assertThat(changes).change().rowAtEndPoint().value().isNull();
isNull in interface AssertOnValueNullity<E extends AbstractAssertWithValues<E,O>>this assertion object.AbstractValueAssert.isNull(),
isNull()public E isNotNull()
null.
Example where the assertion verifies that the value in the first Column of the first Row of the
Table is not null :
assertThat(table).row().value().isNotNull();
Example where the assertion verifies that the value in the first Column of the Row at end point
of the first Change is not null :
assertThat(changes).change().rowAtEndPoint().value().isNotNull();
isNotNull in interface AssertOnValueNullity<E extends AbstractAssertWithValues<E,O>>this assertion object.AbstractValueAssert.isNotNull(),
isNotNull()public E isEqualTo(Object expected)
Example where the assertion verifies that the value in the first Column of the first Row of the
Table is equal to french Locale :
assertThat(table).row().value().isEqualTo(Locale.FRENCH);
Example where the assertion verifies that the value in the first Column of the Row at end point
of the first Change is equal to french Locale :
assertThat(changes).change().rowAtEndPoint().value().isEqualTo(Locale.FRENCH);
isEqualTo in interface AssertOnValueEquality<E extends AbstractAssertWithValues<E,O>>expected - The expected object value.this assertion object.AbstractValueAssert.isEqualTo(Object),
isEqualTo(Object)public E isEqualTo(Boolean expected)
Example where the assertion verifies that the value in the first Column of the first Row of the
Table is equal to true boolean :
assertThat(table).row().value().isEqualTo(true);
Example where the assertion verifies that the value in the first Column of the Row at end point
of the first Change is equal to true boolean :
assertThat(changes).change().rowAtEndPoint().value().isEqualTo(true);
isEqualTo in interface AssertOnValueEquality<E extends AbstractAssertWithValues<E,O>>expected - The expected boolean value.this assertion object.AbstractValueAssert.isEqualTo(Boolean),
isEqualTo(Boolean)public E isTrue()
Example with the value in the first Column of the first Row of the Table :
assertThat(table).row().value().isTrue();
Example where the assertion verifies that the value in the first Column of the Row at end point
of the first Change :
assertThat(changes).change().rowAtEndPoint().value().isTrue();
isTrue in interface AssertOnValueEquality<E extends AbstractAssertWithValues<E,O>>this assertion object.AbstractValueAssert.isTrue(),
isTrue()public E isFalse()
Example with the value in the first Column of the first Row of the Table :
assertThat(table).row().value().isFalse();
Example where the assertion verifies that the value in the first Column of the Row at end point
of the first Change :
assertThat(changes).change().rowAtEndPoint().value().isFalse();
isFalse in interface AssertOnValueEquality<E extends AbstractAssertWithValues<E,O>>this assertion object.AbstractValueAssert.isFalse(),
isFalse()public E isEqualTo(Number expected)
Example where the assertion verifies that the value in the first Column of the first Row of the
Table is equal to number 3 :
assertThat(table).row().value().isEqualTo(3);
Example where the assertion verifies that the value in the first Column of the Row at end point
of the first Change is equal to number 3 :
assertThat(changes).change().rowAtEndPoint().value().isEqualTo(3);
isEqualTo in interface AssertOnValueEquality<E extends AbstractAssertWithValues<E,O>>expected - The expected number value.this assertion object.AbstractValueAssert.isEqualTo(Number),
isEqualTo(Number)public E isEqualTo(byte[] expected)
Example where the assertion verifies that the value in the first Column of the first Row of the
Table is equal to a array of bytes loaded from a file in the classpath :
byte[] bytes = bytesContentFromClassPathOf("file.png");
assertThat(table).row().value().isEqualTo(bytes);
Example where the assertion verifies that the value in the first Column of the Row at end point
of the first Change is equal to a array of bytes loaded from a file in the classpath :
byte[] bytes = bytesContentFromClassPathOf("file.png");
assertThat(changes).change().rowAtEndPoint().value().isEqualTo(bytes);
isEqualTo in interface AssertOnValueEquality<E extends AbstractAssertWithValues<E,O>>expected - The expected array of bytes value.this assertion object.AbstractValueAssert.isEqualTo(byte[]),
isEqualTo(byte[])public E isEqualTo(String expected)
Example where the assertion verifies that the value in the first Column of the first Row of the
Table is equal to a text :
assertThat(table).row().value().isEqualTo("text");
Example where the assertion verifies that the value in the first Column of the Row at end point
of the first Change is equal to a text :
assertThat(changes).change().rowAtEndPoint().value().isEqualTo("text");
isEqualTo in interface AssertOnValueEquality<E extends AbstractAssertWithValues<E,O>>expected - The expected text value.this assertion object.AbstractValueAssert.isEqualTo(String),
isEqualTo(String)public E isEqualTo(Character expected)
Example where the assertion verifies that the value in the first Column of the first Row of the
Table is equal to a character :
assertThat(table).row().value().isEqualTo('c');
Example where the assertion verifies that the value in the first Column of the Row at end point
of the first Change is equal to a character :
assertThat(changes).change().rowAtEndPoint().value().isEqualTo('c');
isEqualTo in interface AssertOnValueEquality<E extends AbstractAssertWithValues<E,O>>expected - The expected character value.this assertion object.AbstractValueAssert.isEqualTo(Character),
isEqualTo(Character)public E isEqualTo(UUID expected)
Example where the assertion verifies that the value in the first Column of the first Row of the
Table is equal to an UUID :
assertThat(table).row().value().isEqualTo(UUID.fromString("30B443AE-C0C9-4790-9BEC-CE1380808435"));
Example where the assertion verifies that the value in the first Column of the Row at end point
of the first Change is equal to an UUID :
assertThat(changes).change().rowAtEndPoint().value().isEqualTo(UUID.fromString("30B443AE-C0C9-4790-9BEC-CE1380808435"));
isEqualTo in interface AssertOnValueEquality<E extends AbstractAssertWithValues<E,O>>expected - The expected UUID value.this assertion object.AbstractValueAssert.isEqualTo(UUID),
isEqualTo(UUID)public E isEqualTo(DateValue expected)
Example where the assertion verifies that the value in the first Column of the first Row of the
Table is equal to a date value :
assertThat(table).row().value().isEqualTo(DateValue.of(2014, 7, 7));
Example where the assertion verifies that the value in the first Column of the Row at end point
of the first Change is equal to a date value :
assertThat(changes).change().rowAtEndPoint().value().isEqualTo(DateValue.of(2014, 7, 7));
isEqualTo in interface AssertOnValueEquality<E extends AbstractAssertWithValues<E,O>>expected - The expected date value.this assertion object.AbstractValueAssert.isEqualTo(DateValue),
isEqualTo(DateValue)public E isEqualTo(TimeValue expected)
Example where the assertion verifies that the value in the first Column of the first Row of the
Table is equal to a time value :
assertThat(table).row().value().isEqualTo(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 equal to a time value :
assertThat(changes).change().rowAtEndPoint().value().isEqualTo(TimeValue.of(21, 29, 30));
isEqualTo in interface AssertOnValueEquality<E extends AbstractAssertWithValues<E,O>>expected - The expected time value.this assertion object.AbstractValueAssert.isEqualTo(TimeValue),
isEqualTo(TimeValue)public E isEqualTo(DateTimeValue expected)
Example where the assertion verifies that the value in the first Column of the first Row of the
Table is equal to a date/time value :
assertThat(table).row().value().isEqualTo(DateTimeValue.of(DateValue.of(2014, 7, 7), 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 equal to a date/time value :
assertThat(changes).change().rowAtEndPoint().value().isEqualTo(DateTimeValue.of(DateValue.of(2014, 7, 7), TimeValue.of(21, 29)));
isEqualTo in interface AssertOnValueEquality<E extends AbstractAssertWithValues<E,O>>expected - The expected date/time value.this assertion object.AbstractValueAssert.isEqualTo(DateTimeValue),
isEqualTo(DateTimeValue)public E isNotEqualTo(Object expected)
Example where the assertion verifies that the value in the first Column of the first Row of the
Table is not equal to true french Locale :
assertThat(table).row().value().isNotEqualTo(Locale.FRENCH);
Example where the assertion verifies that the value in the first Column of the Row at end point
of the first Change is not equal to french Locale :
assertThat(changes).change().rowAtEndPoint().value().isNotEqualTo(Locale.FRENCH);
isNotEqualTo in interface AssertOnValueInequality<E extends AbstractAssertWithValues<E,O>>expected - The expected object value.this assertion object.AbstractValueAssert.isNotEqualTo(Object),
isNotEqualTo(Object)public E isNotEqualTo(Boolean expected)
Example where the assertion verifies that the value in the first Column of the first Row of the
Table is not equal to true boolean :
assertThat(table).row().value().isNotEqualTo(true);
Example where the assertion verifies that the value in the first Column of the Row at end point
of the first Change is not equal to true boolean :
assertThat(changes).change().rowAtEndPoint().value().isNotEqualTo(true);
isNotEqualTo in interface AssertOnValueInequality<E extends AbstractAssertWithValues<E,O>>expected - The expected boolean value.this assertion object.AbstractValueAssert.isNotEqualTo(Boolean),
isNotEqualTo(Boolean)public E isNotEqualTo(byte[] expected)
Example where the assertion verifies that the value in the first Column of the first Row of the
Table is not equal to a array of bytes loaded from a file in the classpath :
byte[] bytes = bytesContentFromClassPathOf("file.png");
assertThat(table).row().value().isNotEqualTo(bytes);
Example where the assertion verifies that the value in the first Column of the Row at end point
of the first Change is not equal to a array of bytes loaded from a file in the classpath :
byte[] bytes = bytesContentFromClassPathOf("file.png");
assertThat(changes).change().rowAtEndPoint().value().isNotEqualTo(bytes);
isNotEqualTo in interface AssertOnValueInequality<E extends AbstractAssertWithValues<E,O>>expected - The expected array of bytes value.this assertion object.AbstractValueAssert.isNotEqualTo(byte[]),
isNotEqualTo(byte[])public E isNotEqualTo(DateTimeValue expected)
Example where the assertion verifies that the value in the first Column of the first Row of the
Table is not equal to a date/time value :
assertThat(table).row().value().isNotEqualTo(DateTimeValue.of(DateValue.of(2014, 7, 7), 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 not equal to a date/time value :
assertThat(changes).change().rowAtEndPoint().value().isNotEqualTo(DateTimeValue.of(DateValue.of(2014, 7, 7), TimeValue.of(21, 29)));
isNotEqualTo in interface AssertOnValueInequality<E extends AbstractAssertWithValues<E,O>>expected - The expected date/time value.this assertion object.AbstractValueAssert.isNotEqualTo(DateTimeValue),
isNotEqualTo(DateTimeValue)public E isNotEqualTo(DateValue expected)
Example where the assertion verifies that the value in the first Column of the first Row of the
Table is not equal to a date value :
assertThat(table).row().value().isNotEqualTo(DateValue.of(2014, 7, 7));
Example where the assertion verifies that the value in the first Column of the Row at end point
of the first Change is not equal to a date value :
assertThat(changes).change().rowAtEndPoint().value().isNotEqualTo(DateValue.of(2014, 7, 7));
isNotEqualTo in interface AssertOnValueInequality<E extends AbstractAssertWithValues<E,O>>expected - The expected date value.this assertion object.AbstractValueAssert.isNotEqualTo(DateValue),
isNotEqualTo(DateValue)public E isNotEqualTo(Number expected)
Example where the assertion verifies that the value in the first Column of the first Row of the
Table is not equal to number 3 :
assertThat(table).row().value().isNotEqualTo(3);
Example where the assertion verifies that the value in the first Column of the Row at end point
of the first Change is not equal to number 3 :
assertThat(changes).change().rowAtEndPoint().value().isNotEqualTo(3);
isNotEqualTo in interface AssertOnValueInequality<E extends AbstractAssertWithValues<E,O>>expected - The expected number value.this assertion object.AbstractValueAssert.isNotEqualTo(Number),
isNotEqualTo(Number)public E isNotEqualTo(String expected)
Example where the assertion verifies that the value in the first Column of the first Row of the
Table is not equal to a text :
assertThat(table).row().value().isNotEqualTo("text");
Example where the assertion verifies that the value in the first Column of the Row at end point
of the first Change is not equal to a text :
assertThat(changes).change().rowAtEndPoint().value().isNotEqualTo("text");
isNotEqualTo in interface AssertOnValueInequality<E extends AbstractAssertWithValues<E,O>>expected - The expected text value.this assertion object.AbstractValueAssert.isNotEqualTo(String),
isNotEqualTo(String)public E isNotEqualTo(Character expected)
Example where the assertion verifies that the value in the first Column of the first Row of the
Table is not equal to a character :
assertThat(table).row().value().isNotEqualTo('c');
Example where the assertion verifies that the value in the first Column of the Row at end point
of the first Change is not equal to a character :
assertThat(changes).change().rowAtEndPoint().value().isNotEqualTo('c');
isNotEqualTo in interface AssertOnValueInequality<E extends AbstractAssertWithValues<E,O>>expected - The expected character value.this assertion object.AbstractValueAssert.isNotEqualTo(Character),
isNotEqualTo(Character)public E isNotEqualTo(UUID expected)
Example where the assertion verifies that the value in the first Column of the first Row of the
Table is not equal to an UUID :
assertThat(table).row().value().isNotEqualTo(UUID.fromString("30B443AE-C0C9-4790-9BEC-CE1380808435"));
Example where the assertion verifies that the value in the first Column of the Row at end point
of the first Change is not equal to an UUID :
assertThat(changes).change().rowAtEndPoint().value().isNotEqualTo(UUID.fromString("30B443AE-C0C9-4790-9BEC-CE1380808435"));
isNotEqualTo in interface AssertOnValueInequality<E extends AbstractAssertWithValues<E,O>>expected - The expected UUID value.this assertion object.AbstractValueAssert.isNotEqualTo(UUID),
isNotEqualTo(UUID)public E isNotEqualTo(TimeValue expected)
Example where the assertion verifies that the value in the first Column of the first Row of the
Table is not equal to a time value :
assertThat(table).row().value().isNotEqualTo(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 not equal to a time value :
assertThat(changes).change().rowAtEndPoint().value().isNotEqualTo(TimeValue.of(21, 29, 30));
isNotEqualTo in interface AssertOnValueInequality<E extends AbstractAssertWithValues<E,O>>expected - The expected time value.this assertion object.AbstractValueAssert.isNotEqualTo(TimeValue),
isNotEqualTo(TimeValue)public E 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));
isBefore in interface AssertOnValueChronology<E extends AbstractAssertWithValues<E,O>>date - The date value to compare to.this assertion object.AbstractValueAssert.isBefore(org.assertj.db.type.DateValue),
isBefore(org.assertj.db.type.DateValue)public E 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));
isBefore in interface AssertOnValueChronology<E extends AbstractAssertWithValues<E,O>>time - The time value to compare to.this assertion object.AbstractValueAssert.isBefore(org.assertj.db.type.TimeValue),
isBefore(org.assertj.db.type.TimeValue)public E 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)));
isBefore in interface AssertOnValueChronology<E extends AbstractAssertWithValues<E,O>>dateTime - The date/time value to compare to.this assertion object.AbstractValueAssert.isBefore(org.assertj.db.type.DateTimeValue),
isBefore(org.assertj.db.type.DateTimeValue)public E 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");
isBefore in interface AssertOnValueChronology<E extends AbstractAssertWithValues<E,O>>expected - The String representing a date, time or date/time to compare to.this assertion object.AbstractValueAssert.isBefore(String),
isBefore(String)public E 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));
isBeforeOrEqualTo in interface AssertOnValueChronology<E extends AbstractAssertWithValues<E,O>>date - The date value to compare to.this assertion object.AbstractValueAssert.isBeforeOrEqualTo(org.assertj.db.type.DateValue),
isBeforeOrEqualTo(org.assertj.db.type.DateValue)public E 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));
isBeforeOrEqualTo in interface AssertOnValueChronology<E extends AbstractAssertWithValues<E,O>>time - The time value to compare to.this assertion object.AbstractValueAssert.isBeforeOrEqualTo(org.assertj.db.type.TimeValue),
isBeforeOrEqualTo(org.assertj.db.type.TimeValue)public E 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)));
isBeforeOrEqualTo in interface AssertOnValueChronology<E extends AbstractAssertWithValues<E,O>>dateTime - The date/time value to compare to.this assertion object.AbstractValueAssert.isBeforeOrEqualTo(org.assertj.db.type.DateTimeValue),
isBeforeOrEqualTo(org.assertj.db.type.DateTimeValue)public E 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");
isBeforeOrEqualTo in interface AssertOnValueChronology<E extends AbstractAssertWithValues<E,O>>expected - The String representing a date, time or date/time to compare to.this assertion object.AbstractValueAssert.isBeforeOrEqualTo(String),
isBeforeOrEqualTo(String)public E 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));
isAfter in interface AssertOnValueChronology<E extends AbstractAssertWithValues<E,O>>date - The date value to compare to.this assertion object.AbstractValueAssert.isAfter(org.assertj.db.type.DateValue),
isAfter(org.assertj.db.type.DateValue)public E 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));
isAfter in interface AssertOnValueChronology<E extends AbstractAssertWithValues<E,O>>time - The time value to compare to.this assertion object.AbstractValueAssert.isAfter(org.assertj.db.type.TimeValue),
isAfter(org.assertj.db.type.TimeValue)public E 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)));
isAfter in interface AssertOnValueChronology<E extends AbstractAssertWithValues<E,O>>dateTime - The date/time value to compare to.this assertion object.AbstractValueAssert.isAfter(org.assertj.db.type.DateTimeValue),
isAfter(org.assertj.db.type.DateTimeValue)public E 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");
isAfter in interface AssertOnValueChronology<E extends AbstractAssertWithValues<E,O>>expected - The String representing a date, time or date/time to compare to.this assertion object.AbstractValueAssert.isAfter(String),
isAfter(String)public E 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));
isAfterOrEqualTo in interface AssertOnValueChronology<E extends AbstractAssertWithValues<E,O>>date - The date value to compare to.this assertion object.AbstractValueAssert.isAfterOrEqualTo(org.assertj.db.type.DateValue),
isAfterOrEqualTo(org.assertj.db.type.DateValue)public E 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));
isAfterOrEqualTo in interface AssertOnValueChronology<E extends AbstractAssertWithValues<E,O>>time - The time value to compare to.this assertion object.AbstractValueAssert.isAfterOrEqualTo(org.assertj.db.type.TimeValue),
isAfterOrEqualTo(org.assertj.db.type.TimeValue)public E 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)));
isAfterOrEqualTo in interface AssertOnValueChronology<E extends AbstractAssertWithValues<E,O>>dateTime - The date/time value to compare to.this assertion object.AbstractValueAssert.isAfterOrEqualTo(org.assertj.db.type.DateTimeValue),
isAfterOrEqualTo(org.assertj.db.type.DateTimeValue)public E 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");
isAfterOrEqualTo in interface AssertOnValueChronology<E extends AbstractAssertWithValues<E,O>>expected - The String representing a date, time or date/time to compare to.this assertion object.AbstractValueAssert.isAfterOrEqualTo(String),
isAfterOrEqualTo(String)public E isZero()
Example where the assertion verifies that the value in the first Column of the first Row of the
Table is equal to zero :
assertThat(table).row().value().isZero();
Example where the assertion verifies that the value in the first Column of the Row at end point
of the first Change is equal to zero :
assertThat(changes).change().rowAtEndPoint().value().isZero();
isZero in interface AssertOnValueEquality<E extends AbstractAssertWithValues<E,O>>this assertion object.AbstractValueAssert.isZero(),
isZero()public E isNotZero()
Example where the assertion verifies that the value in the first Column of the first Row of the
Table is not equal to zero :
assertThat(table).row().value().isNotZero();
Example where the assertion verifies that the value in the first Column of the Row at end point
of the first Change is not equal to zero :
assertThat(changes).change().rowAtEndPoint().value().isNotZero();
isNotZero in interface AssertOnValueInequality<E extends AbstractAssertWithValues<E,O>>this assertion object.AbstractValueAssert.isNotZero(),
isNotZero()public E isGreaterThan(Number expected)
Example where the assertion verifies that the value in the first Column of the first Row of the
Table is greater than number 3 :
assertThat(table).row().value().isGreaterThan(3);
Example where the assertion verifies that the value in the first Column of the Row at end point
of the first Change is greater than number 3 :
assertThat(changes).change().rowAtEndPoint().value().isGreaterThan(3);
isGreaterThan in interface AssertOnValueComparison<E extends AbstractAssertWithValues<E,O>>expected - The expected number value.this assertion object.AbstractValueAssert.isGreaterThan(Number),
isGreaterThan(Number)public E isLessThan(Number expected)
Example where the assertion verifies that the value in the first Column of the first Row of the
Table is less than number 3 :
assertThat(table).row().value().isLessThan(3);
Example where the assertion verifies that the value in the first Column of the Row at end point
of the first Change is less than number 3 :
assertThat(changes).change().rowAtEndPoint().value().isLessThan(3);
isLessThan in interface AssertOnValueComparison<E extends AbstractAssertWithValues<E,O>>expected - The expected number value.this assertion object.AbstractValueAssert.isLessThan(Number),
isLessThan(Number)public E isGreaterThanOrEqualTo(Number expected)
Example where the assertion verifies that the value in the first Column of the first Row of the
Table is greater than or equal to number 3 :
assertThat(table).row().value().isGreaterThanOrEqual(3);
Example where the assertion verifies that the value in the first Column of the Row at end point
of the first Change is greater than or equal to number 3 :
assertThat(changes).change().rowAtEndPoint().value().isGreaterThanOrEqual(3);
isGreaterThanOrEqualTo in interface AssertOnValueComparison<E extends AbstractAssertWithValues<E,O>>expected - The expected number value.this assertion object.AbstractValueAssert.isGreaterThanOrEqualTo(Number),
isGreaterThanOrEqualTo(Number)public E isLessThanOrEqualTo(Number expected)
Example where the assertion verifies that the value in the first Column of the first Row of the
Table is less than or equal to number 3 :
assertThat(table).row().value().isLessThanOrEqual(3);
Example where the assertion verifies that the value in the first Column of the Row at end point
of the first Change is less than or equal to number 3 :
assertThat(changes).change().rowAtEndPoint().value().isLessThanOrEqual(3);
isLessThanOrEqualTo in interface AssertOnValueComparison<E extends AbstractAssertWithValues<E,O>>expected - The expected number value.this assertion object.AbstractValueAssert.isLessThanOrEqualTo(Number),
isLessThanOrEqualTo(Number)public E isCloseTo(Number expected, Number tolerance)
Example where the assertion verifies that the value in the first Column of the first Row of the
Table is close to number 3 with a tolerance of 1 (that means that all the numbers between 2 and 4
included are close enough) :
assertThat(table).row().value().isCloseTo(3, 1);
Example where the assertion verifies that the value in the first Column of the Row at end point
of the first Change is close to number 3 with a tolerance of 0.75 :
assertThat(changes).change().rowAtEndPoint().value().isCloseTo(3, 0.75);
isCloseTo in interface AssertOnValueCloseness<E extends AbstractAssertWithValues<E,O>>expected - The expected number value.tolerance - The tolerance of the closeness.this assertion object.AbstractValueAssert.isCloseTo(Number, Number),
isCloseTo(Number, Number)public E isCloseTo(DateValue expected, DateValue tolerance)
Example where the assertion verifies that the value in the first Column of the first Row of the
Table is close to a date value with a tolerance of 2 days :
assertThat(table).row().value().isCloseTo(DateValue.of(2014, 7, 7), DateValue.of(0, 0, 2));
Example where the assertion verifies that the value in the first Column of the Row at end point
of the first Change is close to a date value with a tolerance of 2 days :
assertThat(changes).change().rowAtEndPoint().value().isCloseTo(DateValue.of(2014, 7, 7), DateValue.of(0, 0, 2));
isCloseTo in interface AssertOnValueCloseness<E extends AbstractAssertWithValues<E,O>>expected - The expected date value.tolerance - The tolerance of the closeness.this assertion object.AbstractValueAssert.isCloseTo(DateValue, DateValue),
isCloseTo(DateValue, DateValue)public E isCloseTo(DateValue expected, TimeValue tolerance)
Example where the assertion verifies that the value in the first Column of the first Row of the
Table is close to a date value with a tolerance of 1 hour :
assertThat(table).row().value().isCloseTo(DateValue.of(2014, 7, 7), TimeValue.of(1, 0));
Example where the assertion verifies that the value in the first Column of the Row at end point
of the first Change is close to a date value with a tolerance of 1 hour :
assertThat(changes).change().rowAtEndPoint().value().isCloseTo(DateValue.of(2014, 7, 7), TimeValue.of(1, 0));
isCloseTo in interface AssertOnValueCloseness<E extends AbstractAssertWithValues<E,O>>expected - The expected date value.tolerance - The tolerance of the closeness.this assertion object.AbstractValueAssert.isCloseTo(DateValue, TimeValue),
isCloseTo(DateValue, TimeValue)public E isCloseTo(DateValue expected, DateTimeValue tolerance)
Example where the assertion verifies that the value in the first Column of the first Row of the
Table is close to a date value with a tolerance of 2 days and 1 hour :
assertThat(table).row().value().isCloseTo(DateValue.of(2014, 7, 7),
DateTimeValue.of(DateValue.of(0, 0, 2), TimeValue.of(1, 0)));
Example where the assertion verifies that the value in the first Column of the Row at end point
of the first Change is close to a date value with a tolerance of 2 days and 1 hour :
assertThat(changes).change().rowAtEndPoint().value().isCloseTo(DateValue.of(2014, 7, 7),
DateTimeValue.of(DateValue.of(0, 0, 2), TimeValue.of(1, 0)));
isCloseTo in interface AssertOnValueCloseness<E extends AbstractAssertWithValues<E,O>>expected - The expected date value.tolerance - The tolerance of the closeness.this assertion object.AbstractValueAssert.isCloseTo(DateValue, DateTimeValue),
isCloseTo(DateValue, DateTimeValue)public E isCloseTo(TimeValue expected, TimeValue tolerance)
Example where the assertion verifies that the value in the first Column of the first Row of the
Table is close to a time value with a tolerance of 1 hour :
assertThat(table).row().value().isCloseTo(TimeValue.of(21, 29, 30), TimeValue.of(1, 0));
Example where the assertion verifies that the value in the first Column of the Row at end point
of the first Change is close to a time value with a tolerance of 1 hour :
assertThat(changes).change().rowAtEndPoint().value().isCloseTo(TimeValue.of(21, 29, 30), TimeValue.of(1, 0));
isCloseTo in interface AssertOnValueCloseness<E extends AbstractAssertWithValues<E,O>>expected - The expected time value.tolerance - The tolerance of the closeness.this assertion object.AbstractValueAssert.isCloseTo(TimeValue, TimeValue),
isCloseTo(TimeValue, TimeValue)public E isCloseTo(DateTimeValue expected, DateValue tolerance)
Example where the assertion verifies that the value in the first Column of the first Row of the
Table is close to a date/time value with a tolerance of 2 days :
assertThat(table).row().value().isCloseTo(DateTimeValue.of(DateValue.of(2014, 7, 7), TimeValue.of(21, 29, 30)),
DateValue.of(0, 0, 2));
Example where the assertion verifies that the value in the first Column of the Row at end point
of the first Change is close to a date/time value with a tolerance of 2 days :
assertThat(changes).change().rowAtEndPoint().value().isCloseTo(
DateTimeValue.of(DateValue.of(2014, 7, 7), TimeValue.of(21, 29, 30)),
DateValue.of(0, 0, 2));
isCloseTo in interface AssertOnValueCloseness<E extends AbstractAssertWithValues<E,O>>expected - The expected date/time value.tolerance - The tolerance of the closeness.this assertion object.AbstractValueAssert.isCloseTo(DateTimeValue, DateValue),
isCloseTo(DateTimeValue, DateValue)public E isCloseTo(DateTimeValue expected, TimeValue tolerance)
Example where the assertion verifies that the value in the first Column of the first Row of the
Table is close to a date/time value with a tolerance of 1 hour :
assertThat(table).row().value().isCloseTo(DateTimeValue.of(DateValue.of(2014, 7, 7), TimeValue.of(21, 29, 30)),
TimeValue.of(1, 0));
Example where the assertion verifies that the value in the first Column of the Row at end point
of the first Change is close to a date/time value with a tolerance of 1 hour :
assertThat(changes).change().rowAtEndPoint().value().isCloseTo(
DateTimeValue.of(DateValue.of(2014, 7, 7), TimeValue.of(21, 29, 30)),
TimeValue.of(1, 0));
isCloseTo in interface AssertOnValueCloseness<E extends AbstractAssertWithValues<E,O>>expected - The expected date/time value.tolerance - The tolerance of the closeness.this assertion object.AbstractValueAssert.isCloseTo(DateTimeValue, TimeValue),
isCloseTo(DateTimeValue, TimeValue)public E isCloseTo(DateTimeValue expected, DateTimeValue tolerance)
Example where the assertion verifies that the value in the first Column of the first Row of the
Table is close to a date/time value with a tolerance of 2 days and 1 hour :
assertThat(table).row().value().isCloseTo(DateTimeValue.of(DateValue.of(2014, 7, 7), TimeValue.of(21, 29, 30)),
DateTimeValue.of(DateValue.of(0, 0, 2), TimeValue.of(1, 0)));
Example where the assertion verifies that the value in the first Column of the Row at end point
of the first Change is close to a date/time value with a tolerance of 2 days and 1 hour :
assertThat(changes).change().rowAtEndPoint().value().isCloseTo(
DateTimeValue.of(DateValue.of(2014, 7, 7), TimeValue.of(21, 29, 30)),
DateTimeValue.of(DateValue.of(0, 0, 2), TimeValue.of(1, 0)));
isCloseTo in interface AssertOnValueCloseness<E extends AbstractAssertWithValues<E,O>>expected - The expected date/time value.tolerance - The tolerance of the closeness.this assertion object.AbstractValueAssert.isCloseTo(DateTimeValue, DateTimeValue),
isCloseTo(DateTimeValue, DateTimeValue)Copyright © 2015–2017 AssertJ. All rights reserved.