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
Columns assertions.- Author:
- Régis Pouiller, Otoniel Isidoro
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ColumnColumn on which do the assertion.Position of navigation to value.Fields inherited from class org.assertj.db.api.AbstractAssertWithOrigin
originFields 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 StringgetValueDescription(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, valueMethods inherited from class org.assertj.db.api.AbstractAssertWithOriginWithColumnsAndRows
column, column, column, row, rowMethods inherited from class org.assertj.db.api.AbstractAssertWithOrigin
returnToOriginMethods inherited from class org.assertj.db.global.AbstractElement
as, as, describedAs, describedAs, getInfoMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.assertj.core.api.Descriptable
as
-
Field Details
-
Method Details
-
getValueDescription
Returns the value description.- Specified by:
getValueDescriptionin 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:
getValuePositionin 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:
getValuesListin 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:
isEmptyin interfaceAssertOnNumberOfRows<D extends AbstractDbData<D>>- Returns:
thisassertion 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:
hasNumberOfRowsin interfaceAssertOnNumberOfRows<D extends AbstractDbData<D>>- Parameters:
expected- The number to compare to the number of rows.- Returns:
thisassertion 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:
hasNumberOfRowsGreaterThanin interfaceAssertOnNumberOfRows<D extends AbstractDbData<D>>- Parameters:
expected- The number to compare to the number of rows.- Returns:
thisassertion 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:
hasNumberOfRowsLessThanin interfaceAssertOnNumberOfRows<D extends AbstractDbData<D>>- Parameters:
expected- The number to compare to the number of rows.- Returns:
thisassertion 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:
hasNumberOfRowsGreaterThanOrEqualToin interfaceAssertOnNumberOfRows<D extends AbstractDbData<D>>- Parameters:
expected- The number to compare to the number of rows.- Returns:
thisassertion 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:
hasNumberOfRowsLessThanOrEqualToin interfaceAssertOnNumberOfRows<D extends AbstractDbData<D>>- Parameters:
expected- The number to compare to the number of rows.- Returns:
thisassertion 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
Columncalled "title" of theTableis of classString:assertThat(table).column("title").isOfClass(String.class, false);Example where the assertion verifies that all the values in the
Columncalled "title" of theTableis of classStringor not identified (for examplenull) :assertThat(table).column("title").isOfClass(String.class, true);- Specified by:
isOfClassin interfaceAssertOnColumnClass<D extends AbstractDbData<D>>- Parameters:
expected- The expected class to compare to.lenient-trueif 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:
thisassertion 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
Columncalled "title" of theTableis of typeTEXT:assertThat(table).column("title").isOfType(ValueType.TEXT, false);Example where the assertion verifies that all the values in the
Columncalled "title" of theTableis of typeTEXTor not identified (for examplenull) :assertThat(table).column("title").isOfType(ValueType.TEXT, true);- Specified by:
isOfTypein interfaceAssertOnColumnType<D extends AbstractDbData<D>>- Parameters:
expected- The expected type to compare to.lenient-trueif 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:
thisassertion 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
Columncalled "title" of theTableis of typeTEXTor of typeNUMBER:assertThat(table).column("title").isOfAnyTypeIn(ValueType.TEXT, ValueType.NUMBER);- Specified by:
isOfAnyTypeInin interfaceAssertOnColumnType<D extends AbstractDbData<D>>- Parameters:
expected- The expected types to compare to.- Returns:
thisassertion 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
Columncalled "year" of theTableis a number :assertThat(table).column("year").isNumber(true);This assertion method is equivalent to :
xxxxx.isOfType(ValueType.NUMBER, lenient);- Specified by:
isNumberin interfaceAssertOnColumnType<D extends AbstractDbData<D>>- Parameters:
lenient-trueif 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:
thisassertion 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
Columnof theTableis a boolean :assertThat(table).column().isBoolean(false);This assertion method is equivalent to :
xxxxx.isOfType(ValueType.BOOLEAN, lenient);- Specified by:
isBooleanin interfaceAssertOnColumnType<D extends AbstractDbData<D>>- Parameters:
lenient-trueif 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:
thisassertion 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
Columncalled "birth" of theTableis a date :assertThat(table).column("birth").isDate(false);This assertion method is equivalent to :
xxxxx.isOfType(ValueType.DATE, lenient);- Specified by:
isDatein interfaceAssertOnColumnType<D extends AbstractDbData<D>>- Parameters:
lenient-trueif 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:
thisassertion 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
Columnof theTableis a time :assertThat(table).column().isTime(false);This assertion method is equivalent to :
xxxxx.isOfType(ValueType.TIME, lenient);- Specified by:
isTimein interfaceAssertOnColumnType<D extends AbstractDbData<D>>- Parameters:
lenient-trueif 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:
thisassertion 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
Columnof theTableis a date/time :assertThat(table).column().isDateTime(false);This assertion method is equivalent to :
xxxxx.isOfType(ValueType.DATE_TIME, lenient);- Specified by:
isDateTimein interfaceAssertOnColumnType<D extends AbstractDbData<D>>- Parameters:
lenient-trueif 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:
thisassertion 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
Columnof theTableis a array of bytes :assertThat(table).column().isBytes(false);This assertion method is equivalent to :
xxxxx.isOfType(ValueType.BYTES, lenient);- Specified by:
isBytesin interfaceAssertOnColumnType<D extends AbstractDbData<D>>- Parameters:
lenient-trueif 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:
thisassertion 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
Columncalled "title" of theTableis a text :assertThat(table).column("title").isText(false);This assertion method is equivalent to :
xxxxx.isOfType(ValueType.TEXT, lenient);- Specified by:
isTextin interfaceAssertOnColumnType<D extends AbstractDbData<D>>- Parameters:
lenient-trueif 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:
thisassertion 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
Columncalled "id" of theTableis UUID :assertThat(table).column("id").isUUID(false);This assertion method is equivalent to :
xxxxx.isOfType(ValueType.UUID, lenient);- Specified by:
isUUIDin interfaceAssertOnColumnType<D extends AbstractDbData<D>>- Parameters:
lenient-trueif 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:
thisassertion 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
Columnof theTablearenull:assertThat(table).column().hasOnlyNullValues();- Specified by:
hasOnlyNullValuesin interfaceAssertOnColumnNullity<D extends AbstractDbData<D>>- Returns:
thisassertion 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
Columnof theTableare notnull:assertThat(table).column().hasOnlyNotNullValues();- Specified by:
hasOnlyNotNullValuesin interfaceAssertOnColumnNullity<D extends AbstractDbData<D>>- Returns:
thisassertion 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
Columnof theTableare equal to the objects in parameter :assertThat(table).column().hasValues(Locale.FRENCH, Locale.ENGLISH, Locale.FRENCH);- Specified by:
hasValuesin interfaceAssertOnColumnEquality<D extends AbstractDbData<D>>- Parameters:
expected- The expected object values.- Returns:
thisassertion 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
Columnof theTableare equal to the booleans in parameter :assertThat(table).column().hasValues(true, false, true);- Specified by:
hasValuesin interfaceAssertOnColumnEquality<D extends AbstractDbData<D>>- Parameters:
expected- The expected boolean values.- Returns:
thisassertion 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
Columnof theTableare equal to the numbers in parameter :assertThat(table).column().hasValues(5, 10.5, 6);- Specified by:
hasValuesin interfaceAssertOnColumnEquality<D extends AbstractDbData<D>>- Parameters:
expected- The expected numbers values.- Returns:
thisassertion 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
Columnof theTableare 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:
hasValuesin interfaceAssertOnColumnEquality<D extends AbstractDbData<D>>- Parameters:
expected- The expected bytes values.- Returns:
thisassertion 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
Columnof theTableare equal to the texts in parameter :assertThat(table).column().hasValues("text", "text2", "text3");- Specified by:
hasValuesin interfaceAssertOnColumnEquality<D extends AbstractDbData<D>>- Parameters:
expected- The expected text values.- Returns:
thisassertion 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
Columnof theTableare equal to the characters in parameter :assertThat(table).column().hasValues('t', 'e', 'x', 't');- Specified by:
hasValuesin interfaceAssertOnColumnEquality<D extends AbstractDbData<D>>- Parameters:
expected- The expected character values.- Returns:
thisassertion 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
Columnof theTableare 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:
hasValuesin interfaceAssertOnColumnEquality<D extends AbstractDbData<D>>- Parameters:
expected- The expected UUID values.- Returns:
thisassertion 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
Columnof theTableare 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:
hasValuesin interfaceAssertOnColumnEquality<D extends AbstractDbData<D>>- Parameters:
expected- The expected date values.- Returns:
thisassertion 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
Columnof theTableare 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:
hasValuesin interfaceAssertOnColumnEquality<D extends AbstractDbData<D>>- Parameters:
expected- The expected time values.- Returns:
thisassertion 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
Columnof theTableare 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:
hasValuesin interfaceAssertOnColumnEquality<D extends AbstractDbData<D>>- Parameters:
expected- The expected date/time values.- Returns:
thisassertion object.- See Also:
-
containsValues
Verifies that the values of a column contains objects.Example where the assertion verifies that the values in the first
Columnof theTableare containing the objects in parameter :assertThat(table).column().containsValues(Locale.FRENCH, Locale.ENGLISH, Locale.FRENCH);- Specified by:
containsValuesin interfaceAssertOnColumnContent<D extends AbstractDbData<D>>- Parameters:
expected- The expected object values.- Returns:
thisassertion object.- See Also:
-
containsValues
Verifies that the values of a column contains booleans.Example where the assertion verifies that the values in the first
Columnof theTableare containing the booleans in parameter :assertThat(table).column().containsValues(true, false, true);- Specified by:
containsValuesin interfaceAssertOnColumnContent<D extends AbstractDbData<D>>- Parameters:
expected- The expected boolean values.- Returns:
thisassertion object.- See Also:
-
containsValues
Verifies that the values of a column contains numbers.Example where the assertion verifies that the values in the first
Columnof theTableare containing the numbers in parameter :assertThat(table).column().containsValues(5, 10.5, 6);- Specified by:
containsValuesin interfaceAssertOnColumnContent<D extends AbstractDbData<D>>- Parameters:
expected- The expected numbers values.- Returns:
thisassertion object.- See Also:
-
containsValues
Verifies that the values of a column contains bytes.Example where the assertion verifies that the values in the first
Columnof theTableare 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:
containsValuesin interfaceAssertOnColumnContent<D extends AbstractDbData<D>>- Parameters:
expected- The expected bytes values.- Returns:
thisassertion object.- See Also:
-
containsValues
Verifies that the values of a column contains texts.Example where the assertion verifies that the values in the first
Columnof theTableare containing the texts in parameter :assertThat(table).column().containsValues("text", "text2", "text3");- Specified by:
containsValuesin interfaceAssertOnColumnContent<D extends AbstractDbData<D>>- Parameters:
expected- The expected text values.- Returns:
thisassertion object.- See Also:
-
containsValues
Verifies that the values of a column contains characters.Example where the assertion verifies that the values in the first
Columnof theTableare containing the characters in parameter :assertThat(table).column().containsValues('t', 'e', 'x', 't');- Specified by:
containsValuesin interfaceAssertOnColumnContent<D extends AbstractDbData<D>>- Parameters:
expected- The expected character values.- Returns:
thisassertion object.- See Also:
-
containsValues
Verifies that the values of a column containsUUIDs.Example where the assertion verifies that the values in the first
Columnof theTableare 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:
containsValuesin interfaceAssertOnColumnContent<D extends AbstractDbData<D>>- Parameters:
expected- The expected UUID values.- Returns:
thisassertion 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
Columnof theTableare 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:
containsValuesin interfaceAssertOnColumnContent<D extends AbstractDbData<D>>- Parameters:
expected- The expected date values.- Returns:
thisassertion 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
Columnof theTableare 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:
containsValuesin interfaceAssertOnColumnContent<D extends AbstractDbData<D>>- Parameters:
expected- The expected time values.- Returns:
thisassertion 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
Columnof theTableare 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:
containsValuesin interfaceAssertOnColumnContent<D extends AbstractDbData<D>>- Parameters:
expected- The expected date/time values.- Returns:
thisassertion 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
Columnof theTableis equal to "title" :assertThat(table).column().hasColumnName("title");Example where the assertion verifies that the first value of the first
Rowof theTableis equal to "title" :assertThat(table).row().value().hasColumnName("title");Example where the assertion verifies that the column name of the first
Columnof theTableis equal to "title" :assertThat(changes).change(1).column().hasColumnName("title");Example where the assertion verifies that the first value of the first
Rowof theTableis equal to "title" :assertThat(changes).change(1).row().value().hasColumnName("title");- Specified by:
hasColumnNamein interfaceAssertOnColumnName<D extends AbstractDbData<D>>- Parameters:
columnName- The expected column name.- Returns:
thisassertion object.- See Also:
-