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> extends AbstractAssertWithOriginWithColumnsAndRowsFromChange<E,O> implements ValueAssert, AssertOnValueType<E>, AssertOnValueNullity<E>, AssertOnValueEquality<E>, AssertOnValueNonEquality<E>, AssertOnValueComparison<E>, AssertOnValueChronology<E>
Change
assertions.origin
info, 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 |
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(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(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 |
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(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(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 |
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 |
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 |
isZero()
Verifies that the value is equal to zero.
|
column, column, column, columnAmongTheModifiedOnes, columnAmongTheModifiedOnes, columnAmongTheModifiedOnes, rowAtEndPoint, rowAtStartPoint
change, change, changeOfCreation, changeOfCreation, changeOfCreationOnTable, changeOfCreationOnTable, changeOfDeletion, changeOfDeletion, changeOfDeletionOnTable, changeOfDeletionOnTable, changeOfModification, changeOfModification, changeOfModificationOnTable, changeOfModificationOnTable, changeOnTable, changeOnTable, changeOnTableWithPks, ofAll, ofCreation, ofCreationOnTable, ofDeletion, ofDeletionOnTable, ofModification, ofModificationOnTable, onTable
returnToOrigin
as, as, describedAs, describedAs
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 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(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(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(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 AssertOnValueNonEquality<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 AssertOnValueNonEquality<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 AssertOnValueNonEquality<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 AssertOnValueNonEquality<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 AssertOnValueNonEquality<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 AssertOnValueNonEquality<E extends AbstractAssertWithValues<E,O>>
expected
- The expected text value.this
assertion object.AbstractValueAssert.isNotEqualTo(String)
,
isNotEqualTo(String)
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 AssertOnValueNonEquality<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 AssertOnValueNonEquality<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)
Copyright © 2015 AssertJ. All Rights Reserved.