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 String
The name of the column.protected final Value
The actual value at end point.protected final Value
The actual value at start point.Fields inherited from class org.assertj.db.api.AbstractAssertWithOrigin
origin
Fields 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, rowAtStartPoint
Methods 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, onTable
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
Methods inherited from interface org.assertj.db.navigation.ToChange
change, change, changeOfCreation, changeOfCreation, changeOfCreationOnTable, changeOfCreationOnTable, changeOfDeletion, changeOfDeletion, changeOfDeletionOnTable, changeOfDeletionOnTable, changeOfModification, changeOfModification, changeOfModificationOnTable, changeOfModificationOnTable, changeOnTable, changeOnTable, changeOnTableWithPks
Methods inherited from interface org.assertj.db.navigation.ToChanges
ofAll, ofCreation, ofCreationOnTable, ofDeletion, ofDeletionOnTable, ofModification, ofModificationOnTable, onTable
Methods inherited from interface org.assertj.db.navigation.ToColumnFromChange
columnAmongTheModifiedOnes, columnAmongTheModifiedOnes, columnAmongTheModifiedOnes
Methods 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:
valueAtStartPoint
in 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:
valueAtEndPoint
in 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:
isModified
in interfaceAssertOnModifiedColumn<ChangeColumnAssert>
- Returns:
this
assertion 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:
isNotModified
in interfaceAssertOnModifiedColumn<ChangeColumnAssert>
- Returns:
this
assertion 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
Column
of theTable
are equal toLocale.FRENCH
:assertThat(changes).change(1).column().hasValues(Locale.FRENCH);
- Specified by:
hasValues
in interfaceAssertOnColumnOfChangeEquality<ChangeColumnAssert>
- Parameters:
expected
- The expected object value.- Returns:
this
assertion 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
Column
of theTable
are equal toLocale.FRENCH
at start point andLocale.ENGLISH
at end point :assertThat(changes).change(1).column().hasValues(Locale.FRENCH, Locale.ENGLISH);
- Specified by:
hasValues
in interfaceAssertOnColumnOfChangeEquality<ChangeColumnAssert>
- Parameters:
expectedAtStartPoint
- The expected object at start point.expectedAtEndPoint
- The expected object at end point.- Returns:
this
assertion 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
Column
of theTable
are equal totrue
:assertThat(changes).change(1).column().hasValues(true);
- Specified by:
hasValues
in interfaceAssertOnColumnOfChangeEquality<ChangeColumnAssert>
- Parameters:
expected
- The expected boolean value.- Returns:
this
assertion 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
Column
of theTable
are equal totrue
at start point andfalse
at end point :assertThat(changes).change(1).column().hasValues(true, false);
- Specified by:
hasValues
in interfaceAssertOnColumnOfChangeEquality<ChangeColumnAssert>
- Parameters:
expectedAtStartPoint
- The expected boolean at start point.expectedAtEndPoint
- The expected boolean at end point.- Returns:
this
assertion 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
Column
of theTable
are equal to1
:assertThat(changes).change(1).column().hasValues(1);
- Specified by:
hasValues
in interfaceAssertOnColumnOfChangeEquality<ChangeColumnAssert>
- Parameters:
expected
- The expected number value.- Returns:
this
assertion 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
Column
of theTable
are equal to1
at start point and2
at end point :assertThat(changes).change(1).column().hasValues(1, 2);
- Specified by:
hasValues
in interfaceAssertOnColumnOfChangeEquality<ChangeColumnAssert>
- Parameters:
expectedAtStartPoint
- The expected number at start point.expectedAtEndPoint
- The expected number at end point.- Returns:
this
assertion 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
Column
of theTable
are 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:
hasValues
in interfaceAssertOnColumnOfChangeEquality<ChangeColumnAssert>
- Parameters:
expected
- The expected bytes value.- Returns:
this
assertion 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
Column
of theTable
are 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:
hasValues
in interfaceAssertOnColumnOfChangeEquality<ChangeColumnAssert>
- Parameters:
expectedAtStartPoint
- The expected bytes at start point.expectedAtEndPoint
- The expected bytes at end point.- Returns:
this
assertion 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
Column
of theTable
are equal to "Ellen Louise Ripley" :assertThat(changes).change(1).column().hasValues("Ellen Louise Ripley");
- Specified by:
hasValues
in interfaceAssertOnColumnOfChangeEquality<ChangeColumnAssert>
- Parameters:
expected
- The expected text value.- Returns:
this
assertion 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
Column
of theTable
are equal to "Sigourney" at start point and "Susan Alexandra" at end point :assertThat(changes).change(1).column().hasValues("Sigourney", "Susan Alexandra");
- Specified by:
hasValues
in interfaceAssertOnColumnOfChangeEquality<ChangeColumnAssert>
- Parameters:
expectedAtStartPoint
- The expected text at start point.expectedAtEndPoint
- The expected text at end point.- Returns:
this
assertion 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
Column
of theTable
are equal to 'c' :assertThat(changes).change(1).column().hasValues('c');
- Specified by:
hasValues
in interfaceAssertOnColumnOfChangeEquality<ChangeColumnAssert>
- Parameters:
expected
- The expected character value.- Returns:
this
assertion 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
Column
of theTable
are equal to 'c' at start point and 'S' at end point :assertThat(changes).change(1).column().hasValues('c', 'S');
- Specified by:
hasValues
in interfaceAssertOnColumnOfChangeEquality<ChangeColumnAssert>
- Parameters:
expectedAtStartPoint
- The expected character at start point.expectedAtEndPoint
- The expected character at end point.- Returns:
this
assertion 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
Column
of theTable
are equal to 30B443AE-C0C9-4790-9BEC-CE1380808435 :assertThat(changes).change(1).column().hasValues(UUID.fromString("30B443AE-C0C9-4790-9BEC-CE1380808435"));
- Specified by:
hasValues
in interfaceAssertOnColumnOfChangeEquality<ChangeColumnAssert>
- Parameters:
expected
- The expected UUID value.- Returns:
this
assertion 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
Column
of theTable
are 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:
hasValues
in interfaceAssertOnColumnOfChangeEquality<ChangeColumnAssert>
- Parameters:
expectedAtStartPoint
- The expected UUID at start point.expectedAtEndPoint
- The expected UUID at end point.- Returns:
this
assertion 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
Column
of theTable
are equal to 12/23/2007 :assertThat(changes).change(1).column().hasValues(DateValue.of(2007, 12, 23));
- Specified by:
hasValues
in interfaceAssertOnColumnOfChangeEquality<ChangeColumnAssert>
- Parameters:
expected
- The expected date value.- Returns:
this
assertion 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
Column
of theTable
are 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:
hasValues
in interfaceAssertOnColumnOfChangeEquality<ChangeColumnAssert>
- Parameters:
expectedAtStartPoint
- The expected date at start point.expectedAtEndPoint
- The expected date at end point.- Returns:
this
assertion 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
Column
of theTable
are equal to 09:01AM :assertThat(changes).change(1).column().hasValues(TimeValue.of(9, 1));
- Specified by:
hasValues
in interfaceAssertOnColumnOfChangeEquality<ChangeColumnAssert>
- Parameters:
expected
- The expected time value.- Returns:
this
assertion 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
Column
of theTable
are 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:
hasValues
in interfaceAssertOnColumnOfChangeEquality<ChangeColumnAssert>
- Parameters:
expectedAtStartPoint
- The expected time at start point.expectedAtEndPoint
- The expected time at end point.- Returns:
this
assertion 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
Column
of theTable
are 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:
hasValues
in interfaceAssertOnColumnOfChangeEquality<ChangeColumnAssert>
- Parameters:
expected
- The expected date/time value.- Returns:
this
assertion 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
Column
of theTable
are 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:
hasValues
in interfaceAssertOnColumnOfChangeEquality<ChangeColumnAssert>
- Parameters:
expectedAtStartPoint
- The expected date/time at start point.expectedAtEndPoint
- The expected date/time at end point.- 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<ChangeColumnAssert>
- Parameters:
columnName
- The expected column name.- 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<ChangeColumnAssert>
- 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<ChangeColumnAssert>
- 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<ChangeColumnAssert>
- 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<ChangeColumnAssert>
- 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<ChangeColumnAssert>
- 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<ChangeColumnAssert>
- 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<ChangeColumnAssert>
- 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<ChangeColumnAssert>
- 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<ChangeColumnAssert>
- 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<ChangeColumnAssert>
- 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<ChangeColumnAssert>
- 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:
-
returnToChange
Returns to level of assertion methods on aChange
.- Returns:
- a object of assertion methods on a
Change
.
-