Class ChangeRowAssert
- All Implemented Interfaces:
org.assertj.core.api.Descriptable<ChangeRowAssert>,AssertOnExistence<ChangeRowAssert>,AssertOnNumberOfColumns<ChangeRowAssert>,AssertOnRowCondition<ChangeRowAssert>,AssertOnRowEquality<ChangeRowAssert>,AssertOnRowOfChangeExistence<ChangeRowAssert>,Element,RowElement,Navigation,Origin,OriginWithChanges<ChangesAssert,,ChangeAssert> OriginWithColumnsAndRowsFromChange<ChangesAssert,,ChangeAssert, ChangeColumnAssert, ChangeRowAssert> OriginWithValuesFromRow<ChangesAssert,,ChangeAssert, ChangeColumnAssert, ChangeRowAssert, ChangeRowValueAssert> ToChange<ChangeAssert>,ToChanges<ChangesAssert>,ToColumn<ChangeColumnAssert>,ToColumnFromChange<ChangeColumnAssert>,ToRowFromChange<ChangeRowAssert>,ToValue<ChangeRowValueAssert>,ToValueFromRow<ChangeRowValueAssert>
Row of a Change.- Author:
- Régis Pouiller, Julien Roy
-
Field Summary
Fields inherited from class org.assertj.db.api.AbstractAssertWithOrigin
originFields inherited from class org.assertj.db.global.AbstractElement
info, myself -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionVerifies that the row of the change does not exist.exists()Verifies that the row of the change exists.hasNumberOfColumns(int expected) Verifies that the number of columns is equal to the number in parameter.hasNumberOfColumnsGreaterThan(int expected) Verifies that the number of columns is greater than the number in parameter.hasNumberOfColumnsGreaterThanOrEqualTo(int expected) Verifies that the number of columns is greater than or equal to the number in parameter.hasNumberOfColumnsLessThan(int expected) Verifies that the number of columns is less than the number in parameter.hasNumberOfColumnsLessThanOrEqualTo(int expected) Verifies that the number of columns is less than or equal to the number in parameter.Verifies that the values of a row are equal to values in parameter.hasValuesSatisfying(Object... expected) Verifies that the values of a row satisfy to conditions in parameter.Returns to level of assertion methods on aChange.value()Returns assertion methods on the next value in the list of values.value(int index) Returns assertion methods on the value at theindexin parameter.Returns assertion methods on the value corresponding to the column name in parameter.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
-
Constructor Details
-
Method Details
-
value
Returns assertion methods on the next value in the list of values.- Specified by:
valuein interfaceToValue<ChangeRowValueAssert>- Returns:
- An object to make assertions on the next value.
- See Also:
-
value
Returns assertion methods on the value at theindexin parameter.- Specified by:
valuein interfaceToValue<ChangeRowValueAssert>- Parameters:
index- The index corresponding to the value.- Returns:
- An object to make assertions on the value.
- See Also:
-
value
Returns assertion methods on the value corresponding to the column name in parameter.- Specified by:
valuein interfaceToValueFromRow<ChangeRowValueAssert>- Parameters:
columnName- The column name.- Returns:
- An object to make assertions on the value.
- See Also:
-
hasNumberOfColumns
Verifies that the number of columns is equal to the number in parameter.Example where the assertion verifies that the table has 8 columns :
assertThat(table).hasNumberOfColumns(8);Example where the assertion verifies that the first row of the table has 8 columns :
assertThat(table).row().hasNumberOfColumns(8);Example where the assertion verifies that the row at end point of the first change has 8 columns :
assertThat(changes).change().rowAtEndPoint().hasNumberOfColumns(8);- Specified by:
hasNumberOfColumnsin interfaceAssertOnNumberOfColumns<ChangeRowAssert>- Parameters:
expected- The number to compare to the number of columns.- Returns:
thisassertion object.- See Also:
-
hasNumberOfColumnsGreaterThan
Verifies that the number of columns is greater than the number in parameter.Example where the assertion verifies that the table has more than 8 columns :
assertThat(table).hasNumberOfColumnsGreaterThan(8);Example where the assertion verifies that the first row of the table has more than 8 columns :
assertThat(table).row().hasNumberOfColumnsGreaterThan(8);Example where the assertion verifies that the row at end point of the first change has more than 8 columns :
assertThat(changes).change().rowAtEndPoint().hasNumberOfColumnsGreaterThan(8);- Specified by:
hasNumberOfColumnsGreaterThanin interfaceAssertOnNumberOfColumns<ChangeRowAssert>- Parameters:
expected- The number to compare to the number of columns.- Returns:
thisassertion object.- See Also:
-
hasNumberOfColumnsLessThan
Verifies that the number of columns is less than the number in parameter.Example where the assertion verifies that the table has less than 8 columns :
assertThat(table).hasNumberOfColumnsLessThan(8);Example where the assertion verifies that the first row of the table has less than 8 columns :
assertThat(table).row().hasNumberOfColumnsLessThan(8);Example where the assertion verifies that the row at end point of the first change has less than 8 columns :
assertThat(changes).change().rowAtEndPoint().hasNumberOfColumnsLessThan(8);- Specified by:
hasNumberOfColumnsLessThanin interfaceAssertOnNumberOfColumns<ChangeRowAssert>- Parameters:
expected- The number to compare to the number of columns.- Returns:
thisassertion object.- See Also:
-
hasNumberOfColumnsGreaterThanOrEqualTo
Verifies that the number of columns is greater than or equal to the number in parameter.Example where the assertion verifies that the table has at least 8 columns :
assertThat(table).hasNumberOfColumnsGreaterThanOrEqualTo(8);Example where the assertion verifies that the first row of the table has at least 8 columns :
assertThat(table).row().hasNumberOfColumnsGreaterThanOrEqualTo(8);Example where the assertion verifies that the row at end point of the first change has at least 8 columns :
assertThat(changes).change().rowAtEndPoint().hasNumberOfColumnsGreaterThanOrEqualTo(8);- Specified by:
hasNumberOfColumnsGreaterThanOrEqualToin interfaceAssertOnNumberOfColumns<ChangeRowAssert>- Parameters:
expected- The number to compare to the number of columns.- Returns:
thisassertion object.- See Also:
-
hasNumberOfColumnsLessThanOrEqualTo
Verifies that the number of columns is less than or equal to the number in parameter.Example where the assertion verifies that the table has at most 8 columns :
assertThat(table).hasNumberOfColumnsLessThanOrEqualTo(8);Example where the assertion verifies that the first row of the table has at most 8 columns :
assertThat(table).row().hasNumberOfColumnsLessThanOrEqualTo(8);Example where the assertion verifies that the row at end point of the first change has at most 8 columns :
assertThat(changes).change().rowAtEndPoint().hasNumberOfColumnsLessThanOrEqualTo(8);- Specified by:
hasNumberOfColumnsLessThanOrEqualToin interfaceAssertOnNumberOfColumns<ChangeRowAssert>- Parameters:
expected- The number to compare to the number of columns.- Returns:
thisassertion object.- See Also:
-
hasValues
Verifies that the values of a row are equal to values in parameter.Example where the assertion verifies that the values in the first
Rowof theTableare equal to the values in parameter :assertThat(table).row().hasValues(1, "Text", TimeValue.of(9, 1));Example where the assertion verifies that the values of the row at end point of the first change are equal to the values in parameter :
assertThat(changes).change().rowAtEndPoint().hasValues(1, "Text", TimeValue.of(9, 1));- Specified by:
hasValuesin interfaceAssertOnRowEquality<ChangeRowAssert>- Parameters:
expected- The expected values.- Returns:
thisassertion object.- See Also:
-
exists
Verifies that the row of the change exists.Example where the assertion verifies that the row at end point of the first change are equal exists :
assertThat(changes).change().rowAtEndPoint().exists();- Specified by:
existsin interfaceAssertOnExistence<ChangeRowAssert>- Specified by:
existsin interfaceAssertOnRowOfChangeExistence<ChangeRowAssert>- Returns:
thisassertion object.- See Also:
-
doesNotExist
Verifies that the row of the change does not exist.Example where the assertion verifies that the row at end point of the first change are equal does not exist :
assertThat(changes).change().rowAtEndPoint().doesNotExist();- Specified by:
doesNotExistin interfaceAssertOnExistence<ChangeRowAssert>- Specified by:
doesNotExistin interfaceAssertOnRowOfChangeExistence<ChangeRowAssert>- Returns:
thisassertion object.- See Also:
-
hasValuesSatisfying
Verifies that the values of a row satisfy to conditions in parameter.Example where the assertion verifies that the values in the first
Rowof theTablesatisfy to the conditions in parameter :assertThat(table).row().hasValuesSatisfying(new Condition<String>(v -> v.equals("Weaver"), "isWeaver"));Example where the assertion verifies that the values of the row at end point of the first change are equal to the values in parameter :
assertThat(changes).change().rowAtEndPoint().hasValuesSatisfying(new Condition<String>(v -> v.equals("Weaver"), "isWeaver"));- Specified by:
hasValuesSatisfyingin interfaceAssertOnRowCondition<ChangeRowAssert>- Parameters:
expected- The expected conditions.- Returns:
thisassertion object.- See Also:
-
returnToChange
Returns to level of assertion methods on aChange.- Returns:
- a object of assertion methods on a
Change.
-