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
origin
Fields 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 theindex
in 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, 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
-
Constructor Details
-
Method Details
-
value
Returns assertion methods on the next value in the list of values.- Specified by:
value
in interfaceToValue<ChangeRowValueAssert>
- Returns:
- An object to make assertions on the next value.
- See Also:
-
value
Returns assertion methods on the value at theindex
in parameter.- Specified by:
value
in 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:
value
in 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:
hasNumberOfColumns
in interfaceAssertOnNumberOfColumns<ChangeRowAssert>
- Parameters:
expected
- The number to compare to the number of columns.- Returns:
this
assertion 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:
hasNumberOfColumnsGreaterThan
in interfaceAssertOnNumberOfColumns<ChangeRowAssert>
- Parameters:
expected
- The number to compare to the number of columns.- Returns:
this
assertion 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:
hasNumberOfColumnsLessThan
in interfaceAssertOnNumberOfColumns<ChangeRowAssert>
- Parameters:
expected
- The number to compare to the number of columns.- Returns:
this
assertion 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:
hasNumberOfColumnsGreaterThanOrEqualTo
in interfaceAssertOnNumberOfColumns<ChangeRowAssert>
- Parameters:
expected
- The number to compare to the number of columns.- Returns:
this
assertion 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:
hasNumberOfColumnsLessThanOrEqualTo
in interfaceAssertOnNumberOfColumns<ChangeRowAssert>
- Parameters:
expected
- The number to compare to the number of columns.- Returns:
this
assertion 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
Row
of theTable
are 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:
hasValues
in interfaceAssertOnRowEquality<ChangeRowAssert>
- Parameters:
expected
- The expected values.- Returns:
this
assertion 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:
exists
in interfaceAssertOnExistence<ChangeRowAssert>
- Specified by:
exists
in interfaceAssertOnRowOfChangeExistence<ChangeRowAssert>
- Returns:
this
assertion 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:
doesNotExist
in interfaceAssertOnExistence<ChangeRowAssert>
- Specified by:
doesNotExist
in interfaceAssertOnRowOfChangeExistence<ChangeRowAssert>
- Returns:
this
assertion 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
Row
of theTable
satisfy 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:
hasValuesSatisfying
in interfaceAssertOnRowCondition<ChangeRowAssert>
- Parameters:
expected
- The expected conditions.- Returns:
this
assertion object.- See Also:
-
returnToChange
Returns to level of assertion methods on aChange
.- Returns:
- a object of assertion methods on a
Change
.
-