Class AbstractColumnAssert<D extends AbstractDbData<D>,A extends AbstractDbAssert<D,A,C,CV,R,RV>,C extends AbstractColumnAssert<D,A,C,CV,R,RV>,CV extends AbstractColumnValueAssert<D,A,C,CV,R,RV>,R extends AbstractRowAssert<D,A,C,CV,R,RV>,RV extends AbstractRowValueAssert<D,A,C,CV,R,RV>>
- Type Parameters:
D
- The class of the actual value (an sub-class ofAbstractDbData
).A
- The class of the original assertion (an sub-class ofAbstractDbAssert
).C
- The class of this assertion (an sub-class ofAbstractColumnAssert
).CV
- The class of this assertion on the value (an sub-class ofAbstractColumnValueAssert
).R
- The class of the equivalent row assertion (an sub-class ofAbstractRowAssert
).RV
- The class of the equivalent row assertion on the value (an sub-class ofAbstractRowValueAssert
).
- All Implemented Interfaces:
org.assertj.core.api.Descriptable<C>
,AssertOnColumnClass<C>
,AssertOnColumnContent<C>
,AssertOnColumnEquality<C>
,AssertOnColumnName<C>
,AssertOnColumnNullity<C>
,AssertOnColumnType<C>
,AssertOnNumberOfRows<C>
,ColumnElement
,Element
,Navigation
,Origin
,OriginWithColumnsAndRows<C,
,R> ToColumn<C>
,ToRow<R>
,ToValue<CV>
- Direct Known Subclasses:
RequestColumnAssert
,TableColumnAssert
Column
s assertions.- Author:
- Régis Pouiller, Otoniel Isidoro
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Column
Column on which do the assertion.Position of navigation to value.Fields inherited from class org.assertj.db.api.AbstractAssertWithOrigin
origin
Fields inherited from class org.assertj.db.global.AbstractElement
info, myself
-
Method Summary
Modifier and TypeMethodDescriptioncontainsValues
(byte[]... expected) Verifies that the values of a column contains bytes.containsValues
(Boolean... expected) Verifies that the values of a column contains booleans.containsValues
(Character... expected) Verifies that the values of a column contains characters.containsValues
(Number... expected) Verifies that the values of a column contains numbers.containsValues
(Object... expected) Verifies that the values of a column contains objects.containsValues
(String... expected) Verifies that the values of a column contains texts.containsValues
(UUID... expected) Verifies that the values of a column containsUUIDs.containsValues
(DateTimeValue... expected) Verifies that the values of a column contains date/time values.containsValues
(DateValue... expected) Verifies that the values of a column contains date values.containsValues
(TimeValue... expected) Verifies that the values of a column contains time values.protected String
getValueDescription
(int index) Returns the value description.Returns the position of navigation to value.Returns the list of values.hasColumnName
(String columnName) Verifies that the name of a column is equal to the parameter.hasNumberOfRows
(int expected) Verifies that the number of rows is equal to the number in parameter.hasNumberOfRowsGreaterThan
(int expected) Verifies that the number of rows is greater than the number in parameter.hasNumberOfRowsGreaterThanOrEqualTo
(int expected) Verifies that the number of rows is greater than or equal to the number in parameter.hasNumberOfRowsLessThan
(int expected) Verifies that the number of rows is less than the number in parameter.hasNumberOfRowsLessThanOrEqualTo
(int expected) Verifies that the number of rows is less than or equal to the number in parameter.Verifies that all the values of the column are notnull
.Verifies that all the values of the column arenull
.hasValues
(byte[]... expected) Verifies that the values of a column are equal to bytes.Verifies that the values of a column are equal to booleans.Verifies that the values of a column are equal to characters.Verifies that the values of a column are equal to numbers.Verifies that the values of a column are equal to objects.Verifies that the values of a column are equal to texts.Verifies that the values of a column are equal to UUIDs.hasValues
(DateTimeValue... expected) Verifies that the values of a column are equal to date/time values.Verifies that the values of a column are equal to date values.Verifies that the values of a column are equal to time values.isBoolean
(boolean lenient) Verifies that the type of the values of the column is boolean.isBytes
(boolean lenient) Verifies that the type of the values of the column is array of bytes.isDate
(boolean lenient) Verifies that the type of the values of the column is date.isDateTime
(boolean lenient) Verifies that the type of the values of the column is date/time.isEmpty()
Verifies that the number of rows is zero.isNumber
(boolean lenient) Verifies that the type of the values of the column is number.isOfAnyTypeIn
(ValueType... expected) Verifies that the type of the column is equal to one of the types in parameters.Verifies that the class of the values of the column is equal to the class in parameter.Verifies that the type of the values of the column is equal to the type in parameter.isText
(boolean lenient) Verifies that the type of the values of the column is text.isTime
(boolean lenient) Verifies that the type of the values of the column is time.isUUID
(boolean lenient) Verifies that the type of the values of the column is UUID.Methods inherited from class org.assertj.db.api.AbstractSubAssert
value, value
Methods inherited from class org.assertj.db.api.AbstractAssertWithOriginWithColumnsAndRows
column, column, column, row, row
Methods inherited from class org.assertj.db.api.AbstractAssertWithOrigin
returnToOrigin
Methods inherited from class org.assertj.db.global.AbstractElement
as, as, describedAs, describedAs, getInfo
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.assertj.core.api.Descriptable
as
-
Field Details
-
Method Details
-
getValueDescription
Returns the value description.- Specified by:
getValueDescription
in classAbstractSubAssert<D extends AbstractDbData<D>,
A extends AbstractDbAssert<D, A, C, CV, R, RV>, C extends AbstractColumnAssert<D, A, C, CV, R, RV>, CV extends AbstractColumnValueAssert<D, A, C, CV, R, RV>, C extends AbstractColumnAssert<D, A, C, CV, R, RV>, CV extends AbstractColumnValueAssert<D, A, C, CV, R, RV>, R extends AbstractRowAssert<D, A, C, CV, R, RV>, RV extends AbstractRowValueAssert<D, A, C, CV, R, RV>> - Parameters:
index
- The index of the value.- Returns:
- The description.
-
getValuePosition
Returns the position of navigation to value.- Specified by:
getValuePosition
in classAbstractSubAssert<D extends AbstractDbData<D>,
A extends AbstractDbAssert<D, A, C, CV, R, RV>, C extends AbstractColumnAssert<D, A, C, CV, R, RV>, CV extends AbstractColumnValueAssert<D, A, C, CV, R, RV>, C extends AbstractColumnAssert<D, A, C, CV, R, RV>, CV extends AbstractColumnValueAssert<D, A, C, CV, R, RV>, R extends AbstractRowAssert<D, A, C, CV, R, RV>, RV extends AbstractRowValueAssert<D, A, C, CV, R, RV>> - Returns:
- The position of navigation to value.
-
getValuesList
Returns the list of values.- Specified by:
getValuesList
in classAbstractSubAssert<D extends AbstractDbData<D>,
A extends AbstractDbAssert<D, A, C, CV, R, RV>, C extends AbstractColumnAssert<D, A, C, CV, R, RV>, CV extends AbstractColumnValueAssert<D, A, C, CV, R, RV>, C extends AbstractColumnAssert<D, A, C, CV, R, RV>, CV extends AbstractColumnValueAssert<D, A, C, CV, R, RV>, R extends AbstractRowAssert<D, A, C, CV, R, RV>, RV extends AbstractRowValueAssert<D, A, C, CV, R, RV>> - Returns:
- The list of values.
-
isEmpty
Verifies that the number of rows is zero.Example where the assertion verifies that the table is empty :
assertThat(table).isEmpty();
- Specified by:
isEmpty
in interfaceAssertOnNumberOfRows<D extends AbstractDbData<D>>
- Returns:
this
assertion object.- See Also:
-
hasNumberOfRows
Verifies that the number of rows is equal to the number in parameter.Example where the assertion verifies that the table has 2 rows :
assertThat(table).hasNumberOfRows(2);
Example where the assertion verifies that the column with index 1 of the table has 5 rows :
assertThat(table).column(1).hasNumberOfRows(5);
- Specified by:
hasNumberOfRows
in interfaceAssertOnNumberOfRows<D extends AbstractDbData<D>>
- Parameters:
expected
- The number to compare to the number of rows.- Returns:
this
assertion object.- See Also:
-
hasNumberOfRowsGreaterThan
Verifies that the number of rows is greater than the number in parameter.Example where the assertion verifies that the table has more than 8 rows :
assertThat(table).hasNumberOfRowsGreaterThan(8);
Example where the assertion verifies that the first row of the table has more than 8 rows :
assertThat(table).row().hasNumberOfRowsGreaterThan(8);
Example where the assertion verifies that the row at end point of the first change has more than 8 rows :
assertThat(changes).change().rowAtEndPoint().hasNumberOfRowsGreaterThan(8);
- Specified by:
hasNumberOfRowsGreaterThan
in interfaceAssertOnNumberOfRows<D extends AbstractDbData<D>>
- Parameters:
expected
- The number to compare to the number of rows.- Returns:
this
assertion object.- See Also:
-
hasNumberOfRowsLessThan
Verifies that the number of rows is less than the number in parameter.Example where the assertion verifies that the table has less than 8 rows :
assertThat(table).hasNumberOfRowsLessThan(8);
Example where the assertion verifies that the first row of the table has less than 8 rows :
assertThat(table).row().hasNumberOfRowsLessThan(8);
Example where the assertion verifies that the row at end point of the first change has less than 8 rows :
assertThat(changes).change().rowAtEndPoint().hasNumberOfRowsLessThan(8);
- Specified by:
hasNumberOfRowsLessThan
in interfaceAssertOnNumberOfRows<D extends AbstractDbData<D>>
- Parameters:
expected
- The number to compare to the number of rows.- Returns:
this
assertion object.- See Also:
-
hasNumberOfRowsGreaterThanOrEqualTo
Verifies that the number of rows is greater than or equal to the number in parameter.Example where the assertion verifies that the table has at least 8 rows :
assertThat(table).hasNumberOfRowsGreaterThanOrEqualTo(8);
Example where the assertion verifies that the first row of the table has at least 8 rows :
assertThat(table).row().hasNumberOfRowsGreaterThanOrEqualTo(8);
Example where the assertion verifies that the row at end point of the first change has at least 8 rows :
assertThat(changes).change().rowAtEndPoint().hasNumberOfRowsGreaterThanOrEqualTo(8);
- Specified by:
hasNumberOfRowsGreaterThanOrEqualTo
in interfaceAssertOnNumberOfRows<D extends AbstractDbData<D>>
- Parameters:
expected
- The number to compare to the number of rows.- Returns:
this
assertion object.- See Also:
-
hasNumberOfRowsLessThanOrEqualTo
Verifies that the number of rows is less than or equal to the number in parameter.Example where the assertion verifies that the table has at most 8 rows :
assertThat(table).hasNumberOfRowsLessThanOrEqualTo(8);
Example where the assertion verifies that the first row of the table has at most 8 rows :
assertThat(table).row().hasNumberOfRowsLessThanOrEqualTo(8);
Example where the assertion verifies that the row at end point of the first change has at most 8 rows :
assertThat(changes).change().rowAtEndPoint().hasNumberOfRowsLessThanOrEqualTo(8);
- Specified by:
hasNumberOfRowsLessThanOrEqualTo
in interfaceAssertOnNumberOfRows<D extends AbstractDbData<D>>
- Parameters:
expected
- The number to compare to the number of rows.- Returns:
this
assertion object.- See Also:
-
isOfClass
Verifies that the class of the values of the column is equal to the class in parameter.Example where the assertion verifies that all the values in the
Column
called "title" of theTable
is of classString
:assertThat(table).column("title").isOfClass(String.class, false);
Example where the assertion verifies that all the values in the
Column
called "title" of theTable
is of classString
or not identified (for examplenull
) :assertThat(table).column("title").isOfClass(String.class, true);
- Specified by:
isOfClass
in interfaceAssertOnColumnClass<D extends AbstractDbData<D>>
- Parameters:
expected
- The expected class to compare to.lenient
-true
if the test is lenient : if the class of a value is not identified (for example when the value isnull
), it consider that it is ok.- Returns:
this
assertion object.- See Also:
-
isOfType
Verifies that the type of the values of the column is equal to the type in parameter.Example where the assertion verifies that all the values in the
Column
called "title" of theTable
is of typeTEXT
:assertThat(table).column("title").isOfType(ValueType.TEXT, false);
Example where the assertion verifies that all the values in the
Column
called "title" of theTable
is of typeTEXT
or not identified (for examplenull
) :assertThat(table).column("title").isOfType(ValueType.TEXT, true);
- Specified by:
isOfType
in interfaceAssertOnColumnType<D extends AbstractDbData<D>>
- Parameters:
expected
- The expected type to compare to.lenient
-true
if the test is lenient : if the type of a value is not identified (for example when the value isnull
), it consider that it is ok.- Returns:
this
assertion object.- See Also:
-
isOfAnyTypeIn
Verifies that the type of the column is equal to one of the types in parameters.Example where the assertion verifies that the values in the
Column
called "title" of theTable
is of typeTEXT
or of typeNUMBER
:assertThat(table).column("title").isOfAnyTypeIn(ValueType.TEXT, ValueType.NUMBER);
- Specified by:
isOfAnyTypeIn
in interfaceAssertOnColumnType<D extends AbstractDbData<D>>
- Parameters:
expected
- The expected types to compare to.- Returns:
this
assertion object.- See Also:
-
isNumber
Verifies that the type of the values of the column is number.Example where the assertion verifies that all the values in the
Column
called "year" of theTable
is a number :assertThat(table).column("year").isNumber(true);
This assertion method is equivalent to :
xxxxx.isOfType(ValueType.NUMBER, lenient);
- Specified by:
isNumber
in interfaceAssertOnColumnType<D extends AbstractDbData<D>>
- Parameters:
lenient
-true
if the test is lenient : if the type of a value is not identified (for example when the value isnull
), it consider that it is ok.- Returns:
this
assertion object.- See Also:
-
isBoolean
Verifies that the type of the values of the column is boolean.Example where the assertion verifies that all the values in the first
Column
of theTable
is a boolean :assertThat(table).column().isBoolean(false);
This assertion method is equivalent to :
xxxxx.isOfType(ValueType.BOOLEAN, lenient);
- Specified by:
isBoolean
in interfaceAssertOnColumnType<D extends AbstractDbData<D>>
- Parameters:
lenient
-true
if the test is lenient : if the type of a value is not identified (for example when the value isnull
), it consider that it is ok.- Returns:
this
assertion object.- See Also:
-
isDate
Verifies that the type of the values of the column is date.Example where the assertion verifies that all the values in the
Column
called "birth" of theTable
is a date :assertThat(table).column("birth").isDate(false);
This assertion method is equivalent to :
xxxxx.isOfType(ValueType.DATE, lenient);
- Specified by:
isDate
in interfaceAssertOnColumnType<D extends AbstractDbData<D>>
- Parameters:
lenient
-true
if the test is lenient : if the type of a value is not identified (for example when the value isnull
), it consider that it is ok.- Returns:
this
assertion object.- See Also:
-
isTime
Verifies that the type of the values of the column is time.Example where the assertion verifies that all the values in the first
Column
of theTable
is a time :assertThat(table).column().isTime(false);
This assertion method is equivalent to :
xxxxx.isOfType(ValueType.TIME, lenient);
- Specified by:
isTime
in interfaceAssertOnColumnType<D extends AbstractDbData<D>>
- Parameters:
lenient
-true
if the test is lenient : if the type of a value is not identified (for example when the value isnull
), it consider that it is ok.- Returns:
this
assertion object.- See Also:
-
isDateTime
Verifies that the type of the values of the column is date/time.Example where the assertion verifies that all the values in the first
Column
of theTable
is a date/time :assertThat(table).column().isDateTime(false);
This assertion method is equivalent to :
xxxxx.isOfType(ValueType.DATE_TIME, lenient);
- Specified by:
isDateTime
in interfaceAssertOnColumnType<D extends AbstractDbData<D>>
- Parameters:
lenient
-true
if the test is lenient : if the type of a value is not identified (for example when the value isnull
), it consider that it is ok.- Returns:
this
assertion object.- See Also:
-
isBytes
Verifies that the type of the values of the column is array of bytes.Example where the assertion verifies that all the values in the first
Column
of theTable
is a array of bytes :assertThat(table).column().isBytes(false);
This assertion method is equivalent to :
xxxxx.isOfType(ValueType.BYTES, lenient);
- Specified by:
isBytes
in interfaceAssertOnColumnType<D extends AbstractDbData<D>>
- Parameters:
lenient
-true
if the test is lenient : if the type of a value is not identified (for example when the value isnull
), it consider that it is ok.- Returns:
this
assertion object.- See Also:
-
isText
Verifies that the type of the values of the column is text.Example where the assertion verifies that all the values in the
Column
called "title" of theTable
is a text :assertThat(table).column("title").isText(false);
This assertion method is equivalent to :
xxxxx.isOfType(ValueType.TEXT, lenient);
- Specified by:
isText
in interfaceAssertOnColumnType<D extends AbstractDbData<D>>
- Parameters:
lenient
-true
if the test is lenient : if the type of a value is not identified (for example when the value isnull
), it consider that it is ok.- Returns:
this
assertion object.- See Also:
-
isUUID
Verifies that the type of the values of the column is UUID.Example where the assertion verifies that all the values in the
Column
called "id" of theTable
is UUID :assertThat(table).column("id").isUUID(false);
This assertion method is equivalent to :
xxxxx.isOfType(ValueType.UUID, lenient);
- Specified by:
isUUID
in interfaceAssertOnColumnType<D extends AbstractDbData<D>>
- Parameters:
lenient
-true
if the test is lenient : if the type of a value is not identified (for example when the value isnull
), it consider that it is ok.- Returns:
this
assertion object.- See Also:
-
hasOnlyNullValues
Verifies that all the values of the column arenull
.Example where the assertion verifies that all the values in the first
Column
of theTable
arenull
:assertThat(table).column().hasOnlyNullValues();
- Specified by:
hasOnlyNullValues
in interfaceAssertOnColumnNullity<D extends AbstractDbData<D>>
- Returns:
this
assertion object.- See Also:
-
hasOnlyNotNullValues
Verifies that all the values of the column are notnull
.Example where the assertion verifies that all the values in the first
Column
of theTable
are notnull
:assertThat(table).column().hasOnlyNotNullValues();
- Specified by:
hasOnlyNotNullValues
in interfaceAssertOnColumnNullity<D extends AbstractDbData<D>>
- Returns:
this
assertion object.- See Also:
-
hasValues
Verifies that the values of a column are equal to objects.Example where the assertion verifies that the values in the first
Column
of theTable
are equal to the objects in parameter :assertThat(table).column().hasValues(Locale.FRENCH, Locale.ENGLISH, Locale.FRENCH);
- Specified by:
hasValues
in interfaceAssertOnColumnEquality<D extends AbstractDbData<D>>
- Parameters:
expected
- The expected object values.- Returns:
this
assertion object.- See Also:
-
hasValues
Verifies that the values of a column are equal to booleans.Example where the assertion verifies that the values in the first
Column
of theTable
are equal to the booleans in parameter :assertThat(table).column().hasValues(true, false, true);
- Specified by:
hasValues
in interfaceAssertOnColumnEquality<D extends AbstractDbData<D>>
- Parameters:
expected
- The expected boolean values.- Returns:
this
assertion object.- See Also:
-
hasValues
Verifies that the values of a column are equal to numbers.Example where the assertion verifies that the values in the first
Column
of theTable
are equal to the numbers in parameter :assertThat(table).column().hasValues(5, 10.5, 6);
- Specified by:
hasValues
in interfaceAssertOnColumnEquality<D extends AbstractDbData<D>>
- Parameters:
expected
- The expected numbers values.- Returns:
this
assertion object.- See Also:
-
hasValues
Verifies that the values of a column are equal to bytes.Example where the assertion verifies that the values in the first
Column
of theTable
are equal to arrays of bytes loaded from files in the classpath :byte[] bytes1 = bytesContentFromClassPathOf("file1.png"); byte[] bytes2 = bytesContentFromClassPathOf("file2.png"); assertThat(table).column().hasValues(bytes1, bytes2);
- Specified by:
hasValues
in interfaceAssertOnColumnEquality<D extends AbstractDbData<D>>
- Parameters:
expected
- The expected bytes values.- Returns:
this
assertion object.- See Also:
-
hasValues
Verifies that the values of a column are equal to texts.Example where the assertion verifies that the values in the first
Column
of theTable
are equal to the texts in parameter :assertThat(table).column().hasValues("text", "text2", "text3");
- Specified by:
hasValues
in interfaceAssertOnColumnEquality<D extends AbstractDbData<D>>
- Parameters:
expected
- The expected text values.- Returns:
this
assertion object.- See Also:
-
hasValues
Verifies that the values of a column are equal to characters.Example where the assertion verifies that the values in the first
Column
of theTable
are equal to the characters in parameter :assertThat(table).column().hasValues('t', 'e', 'x', 't');
- Specified by:
hasValues
in interfaceAssertOnColumnEquality<D extends AbstractDbData<D>>
- Parameters:
expected
- The expected character values.- Returns:
this
assertion object.- See Also:
-
hasValues
Verifies that the values of a column are equal to UUIDs.Example where the assertion verifies that the values in the first
Column
of theTable
are equal to the UUIDs in parameter :assertThat(table).column().hasValues(UUID.fromString("30B443AE-C0C9-4790-9BEC-CE1380808435"), UUID.fromString("16319617-AE95-4087-9264-D3D21BF611B6"), UUID.fromString("D735221B-5DE5-4112-AA1E-49090CB75ADA"));
- Specified by:
hasValues
in interfaceAssertOnColumnEquality<D extends AbstractDbData<D>>
- Parameters:
expected
- The expected UUID values.- Returns:
this
assertion object.- See Also:
-
hasValues
Verifies that the values of a column are equal to date values.Example where the assertion verifies that the values in the first
Column
of theTable
are equal to the date values in parameter :assertThat(table).column().hasValues(DateValue.of(2014, 7, 7), DateValue.of(2014, 10, 3), DateValue.of(2014, 12, 23));
- Specified by:
hasValues
in interfaceAssertOnColumnEquality<D extends AbstractDbData<D>>
- Parameters:
expected
- The expected date values.- Returns:
this
assertion object.- See Also:
-
hasValues
Verifies that the values of a column are equal to time values.Example where the assertion verifies that the values in the first
Column
of theTable
are equal to the time values in parameter :assertThat(table).column().hasValues(TimeValue.of(21, 29, 30), TimeValue.of(10, 1, 25), TimeValue.of(9, 1));
- Specified by:
hasValues
in interfaceAssertOnColumnEquality<D extends AbstractDbData<D>>
- Parameters:
expected
- The expected time values.- Returns:
this
assertion object.- See Also:
-
hasValues
Verifies that the values of a column are equal to date/time values.Example where the assertion verifies that the values in the first
Column
of theTable
are equal to the date/time values in parameter :assertThat(table).column().hasValues(DateTimeValue.of(DateValue.of(2014, 7, 7), TimeValue.of(21, 29)), DateTimeValue.of(DateValue.of(2014, 7, 7), TimeValue.of(10, 1, 25)), DateTimeValue.of(DateValue.of(2014, 7, 7), TimeValue.of(9, 1)));
- Specified by:
hasValues
in interfaceAssertOnColumnEquality<D extends AbstractDbData<D>>
- Parameters:
expected
- The expected date/time values.- Returns:
this
assertion object.- See Also:
-
containsValues
Verifies that the values of a column contains objects.Example where the assertion verifies that the values in the first
Column
of theTable
are containing the objects in parameter :assertThat(table).column().containsValues(Locale.FRENCH, Locale.ENGLISH, Locale.FRENCH);
- Specified by:
containsValues
in interfaceAssertOnColumnContent<D extends AbstractDbData<D>>
- Parameters:
expected
- The expected object values.- Returns:
this
assertion object.- See Also:
-
containsValues
Verifies that the values of a column contains booleans.Example where the assertion verifies that the values in the first
Column
of theTable
are containing the booleans in parameter :assertThat(table).column().containsValues(true, false, true);
- Specified by:
containsValues
in interfaceAssertOnColumnContent<D extends AbstractDbData<D>>
- Parameters:
expected
- The expected boolean values.- Returns:
this
assertion object.- See Also:
-
containsValues
Verifies that the values of a column contains numbers.Example where the assertion verifies that the values in the first
Column
of theTable
are containing the numbers in parameter :assertThat(table).column().containsValues(5, 10.5, 6);
- Specified by:
containsValues
in interfaceAssertOnColumnContent<D extends AbstractDbData<D>>
- Parameters:
expected
- The expected numbers values.- Returns:
this
assertion object.- See Also:
-
containsValues
Verifies that the values of a column contains bytes.Example where the assertion verifies that the values in the first
Column
of theTable
are containing arrays of bytes loaded from files in the classpath :byte[] bytes1 = bytesContentFromClassPathOf("file1.png"); byte[] bytes2 = bytesContentFromClassPathOf("file2.png"); assertThat(table).column().containsValues(bytes1, bytes2);
- Specified by:
containsValues
in interfaceAssertOnColumnContent<D extends AbstractDbData<D>>
- Parameters:
expected
- The expected bytes values.- Returns:
this
assertion object.- See Also:
-
containsValues
Verifies that the values of a column contains texts.Example where the assertion verifies that the values in the first
Column
of theTable
are containing the texts in parameter :assertThat(table).column().containsValues("text", "text2", "text3");
- Specified by:
containsValues
in interfaceAssertOnColumnContent<D extends AbstractDbData<D>>
- Parameters:
expected
- The expected text values.- Returns:
this
assertion object.- See Also:
-
containsValues
Verifies that the values of a column contains characters.Example where the assertion verifies that the values in the first
Column
of theTable
are containing the characters in parameter :assertThat(table).column().containsValues('t', 'e', 'x', 't');
- Specified by:
containsValues
in interfaceAssertOnColumnContent<D extends AbstractDbData<D>>
- Parameters:
expected
- The expected character values.- Returns:
this
assertion object.- See Also:
-
containsValues
Verifies that the values of a column containsUUIDs.Example where the assertion verifies that the values in the first
Column
of theTable
are containing the UUIDs in parameter :assertThat(table).column().containsValues(UUID.fromString("30B443AE-C0C9-4790-9BEC-CE1380808435"), UUID.fromString("16319617-AE95-4087-9264-D3D21BF611B6"), UUID.fromString("D735221B-5DE5-4112-AA1E-49090CB75ADA"));
- Specified by:
containsValues
in interfaceAssertOnColumnContent<D extends AbstractDbData<D>>
- Parameters:
expected
- The expected UUID values.- Returns:
this
assertion object.- See Also:
-
containsValues
Verifies that the values of a column contains date values.Example where the assertion verifies that the values in the first
Column
of theTable
are containing the date values in parameter :assertThat(table).column().containsValues(DateValue.of(2014, 7, 7), DateValue.of(2014, 10, 3), DateValue.of(2014, 12, 23));
- Specified by:
containsValues
in interfaceAssertOnColumnContent<D extends AbstractDbData<D>>
- Parameters:
expected
- The expected date values.- Returns:
this
assertion object.- See Also:
-
containsValues
Verifies that the values of a column contains time values.Example where the assertion verifies that the values in the first
Column
of theTable
are containing the time values in parameter :assertThat(table).column().containsValues(TimeValue.of(21, 29, 30), TimeValue.of(10, 1, 25), TimeValue.of(9, 1));
- Specified by:
containsValues
in interfaceAssertOnColumnContent<D extends AbstractDbData<D>>
- Parameters:
expected
- The expected time values.- Returns:
this
assertion object.- See Also:
-
containsValues
Verifies that the values of a column contains date/time values.Example where the assertion verifies that the values in the first
Column
of theTable
are containing the date/time values in parameter :assertThat(table).column().containsValues(DateTimeValue.of(DateValue.of(2014, 7, 7), TimeValue.of(21, 29)), DateTimeValue.of(DateValue.of(2014, 7, 7), TimeValue.of(10, 1, 25)), DateTimeValue.of(DateValue.of(2014, 7, 7), TimeValue.of(9, 1)));
- Specified by:
containsValues
in interfaceAssertOnColumnContent<D extends AbstractDbData<D>>
- Parameters:
expected
- The expected date/time values.- Returns:
this
assertion object.- See Also:
-
hasColumnName
Verifies that the name of a column is equal to the parameter.Example where the assertion verifies that the column name of the first
Column
of theTable
is equal to "title" :assertThat(table).column().hasColumnName("title");
Example where the assertion verifies that the first value of the first
Row
of theTable
is equal to "title" :assertThat(table).row().value().hasColumnName("title");
Example where the assertion verifies that the column name of the first
Column
of theTable
is equal to "title" :assertThat(changes).change(1).column().hasColumnName("title");
Example where the assertion verifies that the first value of the first
Row
of theTable
is equal to "title" :assertThat(changes).change(1).row().value().hasColumnName("title");
- Specified by:
hasColumnName
in interfaceAssertOnColumnName<D extends AbstractDbData<D>>
- Parameters:
columnName
- The expected column name.- Returns:
this
assertion object.- See Also:
-