Class ChangeColumnAssert
- All Implemented Interfaces:
org.assertj.core.api.Descriptable<ChangeColumnAssert>,AssertOnColumnClass<ChangeColumnAssert>,AssertOnColumnName<ChangeColumnAssert>,AssertOnColumnOfChangeEquality<ChangeColumnAssert>,AssertOnColumnType<ChangeColumnAssert>,AssertOnModifiedColumn<ChangeColumnAssert>,ColumnElement,Element,Navigation,Origin,OriginWithChanges<ChangesAssert,,ChangeAssert> OriginWithColumnsAndRowsFromChange<ChangesAssert,,ChangeAssert, ChangeColumnAssert, ChangeRowAssert> OriginWithValuesFromColumn<ChangesAssert,,ChangeAssert, ChangeColumnAssert, ChangeRowAssert, ChangeColumnValueAssert> ToChange<ChangeAssert>,ToChanges<ChangesAssert>,ToColumn<ChangeColumnAssert>,ToColumnFromChange<ChangeColumnAssert>,ToRowFromChange<ChangeRowAssert>,ToValueFromColumn<ChangeColumnValueAssert>
Column of a Change.- Author:
- Régis Pouiller, Otoniel Isidoro
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final StringThe name of the column.protected final ValueThe actual value at end point.protected final ValueThe actual value at start point.Fields inherited from class org.assertj.db.api.AbstractAssertWithOrigin
originFields inherited from class org.assertj.db.global.AbstractElement
info, myself -
Constructor Summary
ConstructorsConstructorDescriptionChangeColumnAssert(ChangeAssert origin, String columnName, Value valueAtStartPoint, Value valueAtEndPoint) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionhasColumnName(String columnName) Verifies that the name of a column is equal to the parameter.hasValues(byte[] expected) Verifies that the values at the start point and the end point are equal to bytes.hasValues(byte[] expectedAtStartPoint, byte[] expectedAtEndPoint) Verifies that the values at the start point and the end point are equal to bytes for start point and other bytes for end point.Verifies that the values at the start point and the end point are equal to a boolean.Verifies that the values at the start point and the end point are equal to a boolean for start point and another boolean for end point.Verifies that the values at the start point and the end point are equal to a character.Verifies that the values at the start point and the end point are equal to a character for start point and another character for end point.Verifies that the values at the start point and the end point are equal to a number.Verifies that the values at the start point and the end point are equal to a number for start point and another number for end point.Verifies that the values at the start point and the end point are equal to a object.Verifies that the values at the start point and the end point are equal to a object for start point and another object for end point.Verifies that the values at the start point and the end point are equal to a text.Verifies that the values at the start point and the end point are equal to a text for start point and another text for end point.Verifies that the values at the start point and the end point are equal to an UUID.Verifies that the values at the start point and the end point are equal to an UUID for start point and another UUID for end point.hasValues(DateTimeValue expected) Verifies that the values at the start point and the end point are equal to a date/time.hasValues(DateTimeValue expectedAtStartPoint, DateTimeValue expectedAtEndPoint) Verifies that the values at the start point and the end point are equal to a date/time for start point and another date/time for end point.Verifies that the values at the start point and the end point are equal to a date.Verifies that the values at the start point and the end point are equal to a date for start point and another date for end point.Verifies that the values at the start point and the end point are equal to a time.Verifies that the values at the start point and the end point are equal to a time for start point and another time for end point.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.Verifies that the column is modified between the start point and the end point.Verifies that the column is not modified between the start point and the end point.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.Returns to level of assertion methods on aChange.Returns assertion methods on the value at the end point.Returns assertion methods on the value at the start point.Methods inherited from class org.assertj.db.api.AbstractAssertWithOriginWithColumnsAndRowsFromChange
column, column, column, columnAmongTheModifiedOnes, columnAmongTheModifiedOnes, columnAmongTheModifiedOnes, rowAtEndPoint, rowAtStartPointMethods inherited from class org.assertj.db.api.AbstractAssertWithOriginWithChanges
change, change, changeOfCreation, changeOfCreation, changeOfCreationOnTable, changeOfCreationOnTable, changeOfDeletion, changeOfDeletion, changeOfDeletionOnTable, changeOfDeletionOnTable, changeOfModification, changeOfModification, changeOfModificationOnTable, changeOfModificationOnTable, changeOnTable, changeOnTable, changeOnTableWithPks, ofAll, ofCreation, ofCreationOnTable, ofDeletion, ofDeletionOnTable, ofModification, ofModificationOnTable, onTableMethods 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
asMethods inherited from interface org.assertj.db.navigation.ToChange
change, change, changeOfCreation, changeOfCreation, changeOfCreationOnTable, changeOfCreationOnTable, changeOfDeletion, changeOfDeletion, changeOfDeletionOnTable, changeOfDeletionOnTable, changeOfModification, changeOfModification, changeOfModificationOnTable, changeOfModificationOnTable, changeOnTable, changeOnTable, changeOnTableWithPksMethods inherited from interface org.assertj.db.navigation.ToChanges
ofAll, ofCreation, ofCreationOnTable, ofDeletion, ofDeletionOnTable, ofModification, ofModificationOnTable, onTableMethods inherited from interface org.assertj.db.navigation.ToColumnFromChange
columnAmongTheModifiedOnes, columnAmongTheModifiedOnes, columnAmongTheModifiedOnesMethods inherited from interface org.assertj.db.navigation.ToRowFromChange
rowAtEndPoint, rowAtStartPoint
-
Field Details
-
columnName
The name of the column. -
valueAtStartPoint
The actual value at start point. -
valueAtEndPoint
The actual value at end point.
-
-
Constructor Details
-
ChangeColumnAssert
public ChangeColumnAssert(ChangeAssert origin, String columnName, Value valueAtStartPoint, Value valueAtEndPoint) Constructor.- Parameters:
origin- The assertion ofOrigin.columnName- The column name.valueAtStartPoint- The value at start point.valueAtEndPoint- The value at end point.
-
-
Method Details
-
valueAtStartPoint
Returns assertion methods on the value at the start point.- Specified by:
valueAtStartPointin interfaceToValueFromColumn<ChangeColumnValueAssert>- Returns:
- An object to make assertions on the next value.
- See Also:
-
valueAtEndPoint
Returns assertion methods on the value at the end point.- Specified by:
valueAtEndPointin interfaceToValueFromColumn<ChangeColumnValueAssert>- Returns:
- An object to make assertions on the value.
- See Also:
-
isModified
Verifies that the column is modified between the start point and the end point.Example where the assertion verifies that :
assertThat(changes).change(1).column().isModified();- Specified by:
isModifiedin interfaceAssertOnModifiedColumn<ChangeColumnAssert>- Returns:
thisassertion object.- See Also:
-
isNotModified
Verifies that the column is not modified between the start point and the end point.Example where the assertion verifies that :
assertThat(changes).change(1).column().isNotModified();- Specified by:
isNotModifiedin interfaceAssertOnModifiedColumn<ChangeColumnAssert>- Returns:
thisassertion object.- See Also:
-
hasValues
Verifies that the values at the start point and the end point are equal to a object.Example where the assertion verifies that the values of the first
Columnof theTableare equal toLocale.FRENCH:assertThat(changes).change(1).column().hasValues(Locale.FRENCH);- Specified by:
hasValuesin interfaceAssertOnColumnOfChangeEquality<ChangeColumnAssert>- Parameters:
expected- The expected object value.- Returns:
thisassertion object.- See Also:
-
hasValues
Verifies that the values at the start point and the end point are equal to a object for start point and another object for end point.Example where the assertion verifies that the values of the first
Columnof theTableare equal toLocale.FRENCHat start point andLocale.ENGLISHat end point :assertThat(changes).change(1).column().hasValues(Locale.FRENCH, Locale.ENGLISH);- Specified by:
hasValuesin interfaceAssertOnColumnOfChangeEquality<ChangeColumnAssert>- Parameters:
expectedAtStartPoint- The expected object at start point.expectedAtEndPoint- The expected object at end point.- Returns:
thisassertion object.- See Also:
-
hasValues
Verifies that the values at the start point and the end point are equal to a boolean.Example where the assertion verifies that the values of the first
Columnof theTableare equal totrue:assertThat(changes).change(1).column().hasValues(true);- Specified by:
hasValuesin interfaceAssertOnColumnOfChangeEquality<ChangeColumnAssert>- Parameters:
expected- The expected boolean value.- Returns:
thisassertion object.- See Also:
-
hasValues
Verifies that the values at the start point and the end point are equal to a boolean for start point and another boolean for end point.Example where the assertion verifies that the values of the first
Columnof theTableare equal totrueat start point andfalseat end point :assertThat(changes).change(1).column().hasValues(true, false);- Specified by:
hasValuesin interfaceAssertOnColumnOfChangeEquality<ChangeColumnAssert>- Parameters:
expectedAtStartPoint- The expected boolean at start point.expectedAtEndPoint- The expected boolean at end point.- Returns:
thisassertion object.- See Also:
-
hasValues
Verifies that the values at the start point and the end point are equal to a number.Example where the assertion verifies that the values of the first
Columnof theTableare equal to1:assertThat(changes).change(1).column().hasValues(1);- Specified by:
hasValuesin interfaceAssertOnColumnOfChangeEquality<ChangeColumnAssert>- Parameters:
expected- The expected number value.- Returns:
thisassertion object.- See Also:
-
hasValues
Verifies that the values at the start point and the end point are equal to a number for start point and another number for end point.Example where the assertion verifies that the values of the first
Columnof theTableare equal to1at start point and2at end point :assertThat(changes).change(1).column().hasValues(1, 2);- Specified by:
hasValuesin interfaceAssertOnColumnOfChangeEquality<ChangeColumnAssert>- Parameters:
expectedAtStartPoint- The expected number at start point.expectedAtEndPoint- The expected number at end point.- Returns:
thisassertion object.- See Also:
-
hasValues
Verifies that the values at the start point and the end point are equal to bytes.Example where the assertion verifies that the values of the first
Columnof theTableare equal to a array of bytes loaded from a file in the classpath :byte[] bytes = bytesContentFromClassPathOf("file.png"); assertThat(changes).change(1).column().hasValues(bytes);- Specified by:
hasValuesin interfaceAssertOnColumnOfChangeEquality<ChangeColumnAssert>- Parameters:
expected- The expected bytes value.- Returns:
thisassertion object.- See Also:
-
hasValues
Verifies that the values at the start point and the end point are equal to bytes for start point and other bytes for end point.Example where the assertion verifies that the values of the first
Columnof theTableare equal to a array of bytes loaded from a file in the classpath at start point and another array at end point :byte[] bytes = bytesContentFromClassPathOf("file.png"); byte[] bytes2 = bytesContentFromClassPathOf("file2.png"); assertThat(changes).change(1).column().hasValues(bytes, bytes2);- Specified by:
hasValuesin interfaceAssertOnColumnOfChangeEquality<ChangeColumnAssert>- Parameters:
expectedAtStartPoint- The expected bytes at start point.expectedAtEndPoint- The expected bytes at end point.- Returns:
thisassertion object.- See Also:
-
hasValues
Verifies that the values at the start point and the end point are equal to a text.Example where the assertion verifies that the values of the first
Columnof theTableare equal to "Ellen Louise Ripley" :assertThat(changes).change(1).column().hasValues("Ellen Louise Ripley");- Specified by:
hasValuesin interfaceAssertOnColumnOfChangeEquality<ChangeColumnAssert>- Parameters:
expected- The expected text value.- Returns:
thisassertion object.- See Also:
-
hasValues
Verifies that the values at the start point and the end point are equal to a text for start point and another text for end point.Example where the assertion verifies that the values of the first
Columnof theTableare equal to "Sigourney" at start point and "Susan Alexandra" at end point :assertThat(changes).change(1).column().hasValues("Sigourney", "Susan Alexandra");- Specified by:
hasValuesin interfaceAssertOnColumnOfChangeEquality<ChangeColumnAssert>- Parameters:
expectedAtStartPoint- The expected text at start point.expectedAtEndPoint- The expected text at end point.- Returns:
thisassertion object.- See Also:
-
hasValues
Verifies that the values at the start point and the end point are equal to a character.Example where the assertion verifies that the values of the first
Columnof theTableare equal to 'c' :assertThat(changes).change(1).column().hasValues('c');- Specified by:
hasValuesin interfaceAssertOnColumnOfChangeEquality<ChangeColumnAssert>- Parameters:
expected- The expected character value.- Returns:
thisassertion object.- See Also:
-
hasValues
Verifies that the values at the start point and the end point are equal to a character for start point and another character for end point.Example where the assertion verifies that the values of the first
Columnof theTableare equal to 'c' at start point and 'S' at end point :assertThat(changes).change(1).column().hasValues('c', 'S');- Specified by:
hasValuesin interfaceAssertOnColumnOfChangeEquality<ChangeColumnAssert>- Parameters:
expectedAtStartPoint- The expected character at start point.expectedAtEndPoint- The expected character at end point.- Returns:
thisassertion object.- See Also:
-
hasValues
Verifies that the values at the start point and the end point are equal to an UUID.Example where the assertion verifies that the values of the first
Columnof theTableare equal to 30B443AE-C0C9-4790-9BEC-CE1380808435 :assertThat(changes).change(1).column().hasValues(UUID.fromString("30B443AE-C0C9-4790-9BEC-CE1380808435"));- Specified by:
hasValuesin interfaceAssertOnColumnOfChangeEquality<ChangeColumnAssert>- Parameters:
expected- The expected UUID value.- Returns:
thisassertion object.- See Also:
-
hasValues
Verifies that the values at the start point and the end point are equal to an UUID for start point and another UUID for end point.Example where the assertion verifies that the values of the first
Columnof theTableare equal to 30B443AE-C0C9-4790-9BEC-CE1380808435 at start point and 16319617-AE95-4087-9264-D3D21BF611B6 at end point :assertThat(changes).change(1).column().hasValues(UUID.fromString("30B443AE-C0C9-4790-9BEC-CE1380808435"), UUID.fromString("16319617-AE95-4087-9264-D3D21BF611B6"));- Specified by:
hasValuesin interfaceAssertOnColumnOfChangeEquality<ChangeColumnAssert>- Parameters:
expectedAtStartPoint- The expected UUID at start point.expectedAtEndPoint- The expected UUID at end point.- Returns:
thisassertion object.- See Also:
-
hasValues
Verifies that the values at the start point and the end point are equal to a date.Example where the assertion verifies that the values of the first
Columnof theTableare equal to 12/23/2007 :assertThat(changes).change(1).column().hasValues(DateValue.of(2007, 12, 23));- Specified by:
hasValuesin interfaceAssertOnColumnOfChangeEquality<ChangeColumnAssert>- Parameters:
expected- The expected date value.- Returns:
thisassertion object.- See Also:
-
hasValues
Verifies that the values at the start point and the end point are equal to a date for start point and another date for end point.Example where the assertion verifies that the values of the first
Columnof theTableare equal to 12/23/2007 at start point and 07/25/2002 at end point :assertThat(changes).change(1).column().hasValues(DateValue.of(2007, 12, 23), DateValue.of(2002, 7, 25));- Specified by:
hasValuesin interfaceAssertOnColumnOfChangeEquality<ChangeColumnAssert>- Parameters:
expectedAtStartPoint- The expected date at start point.expectedAtEndPoint- The expected date at end point.- Returns:
thisassertion object.- See Also:
-
hasValues
Verifies that the values at the start point and the end point are equal to a time.Example where the assertion verifies that the values of the first
Columnof theTableare equal to 09:01AM :assertThat(changes).change(1).column().hasValues(TimeValue.of(9, 1));- Specified by:
hasValuesin interfaceAssertOnColumnOfChangeEquality<ChangeColumnAssert>- Parameters:
expected- The expected time value.- Returns:
thisassertion object.- See Also:
-
hasValues
Verifies that the values at the start point and the end point are equal to a time for start point and another time for end point.Example where the assertion verifies that the values of the first
Columnof theTableare equal to 09:01AM at start point and 03:30AM at end point :assertThat(changes).change(1).column().hasValues(TimeValue.of(9, 1), TimeValue.of(3, 30));- Specified by:
hasValuesin interfaceAssertOnColumnOfChangeEquality<ChangeColumnAssert>- Parameters:
expectedAtStartPoint- The expected time at start point.expectedAtEndPoint- The expected time at end point.- Returns:
thisassertion object.- See Also:
-
hasValues
Verifies that the values at the start point and the end point are equal to a date/time.Example where the assertion verifies that the values of the first
Columnof theTableare equal to 12/23/2007 09:01AM :assertThat(changes).change(1).column().hasValues(DateTimeValue.of(DateValue.of(2007, 12, 23), TimeValue.of(9, 1)));- Specified by:
hasValuesin interfaceAssertOnColumnOfChangeEquality<ChangeColumnAssert>- Parameters:
expected- The expected date/time value.- Returns:
thisassertion object.- See Also:
-
hasValues
public ChangeColumnAssert hasValues(DateTimeValue expectedAtStartPoint, DateTimeValue expectedAtEndPoint) Verifies that the values at the start point and the end point are equal to a date/time for start point and another date/time for end point.Example where the assertion verifies that the values of the first
Columnof theTableare equal to 12/23/2007 09:01AM at start point and 07/25/2002 00:00AM at end point :assertThat(changes).change(1).column().hasValues(DateTimeValue.of(DateValue.of(2007, 12, 23), TimeValue.of(9, 1)), DateTimeValue.of(DateValue.of(2002, 7, 25)));- Specified by:
hasValuesin interfaceAssertOnColumnOfChangeEquality<ChangeColumnAssert>- Parameters:
expectedAtStartPoint- The expected date/time at start point.expectedAtEndPoint- The expected date/time at end point.- 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<ChangeColumnAssert>- Parameters:
columnName- The expected column name.- 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<ChangeColumnAssert>- 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<ChangeColumnAssert>- 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<ChangeColumnAssert>- 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<ChangeColumnAssert>- 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<ChangeColumnAssert>- 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<ChangeColumnAssert>- 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<ChangeColumnAssert>- 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<ChangeColumnAssert>- 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<ChangeColumnAssert>- 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<ChangeColumnAssert>- 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<ChangeColumnAssert>- 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:
-
returnToChange
Returns to level of assertion methods on aChange.- Returns:
- a object of assertion methods on a
Change.
-