public class ChangeRowAssert extends AbstractAssertWithOriginWithColumnsAndRowsFromChange<ChangeRowAssert,ChangeAssert> implements RowAssert, OriginWithValuesFromRow, AssertOnRowEquality<ChangeRowAssert>, AssertOnNumberOfColumns<ChangeRowAssert>, AssertOnRowOfChangeExistence<ChangeRowAssert>
Row of a Change.origininfo, myself| Modifier and Type | Method and Description |
|---|---|
ChangeRowAssert |
doesNotExist()
Verifies that the row of the change does not exist.
|
ChangeRowAssert |
exists()
Verifies that the row of the change exists.
|
ChangeRowAssert |
hasNumberOfColumns(int expected)
Verifies that the number of columns is equal to the number in parameter.
|
ChangeRowAssert |
hasValues(Object... expected)
Verifies that the values of a row are equal to values in parameter.
|
ChangeAssert |
returnToChange()
Returns to level of assertion methods on a
Change. |
ChangeRowValueAssert |
value()
Returns assertion methods on the next value in the list of values.
|
ChangeRowValueAssert |
value(int index)
Returns assertion methods on the value at the
index in parameter. |
ChangeRowValueAssert |
value(String columnName)
Returns assertion methods on the value corresponding to the column name in parameter.
|
column, column, column, columnAmongTheModifiedOnes, columnAmongTheModifiedOnes, columnAmongTheModifiedOnes, rowAtEndPoint, rowAtStartPointchange, change, changeOfCreation, changeOfCreation, changeOfCreationOnTable, changeOfCreationOnTable, changeOfDeletion, changeOfDeletion, changeOfDeletionOnTable, changeOfDeletionOnTable, changeOfModification, changeOfModification, changeOfModificationOnTable, changeOfModificationOnTable, changeOnTable, changeOnTable, changeOnTableWithPks, ofAll, ofCreation, ofCreationOnTable, ofDeletion, ofDeletionOnTable, ofModification, ofModificationOnTable, onTablereturnToOriginas, as, describedAs, describedAsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitofAll, ofCreation, ofCreationOnTable, ofDeletion, ofDeletionOnTable, ofModification, ofModificationOnTable, onTablechange, change, changeOfCreation, changeOfCreation, changeOfCreationOnTable, changeOfCreationOnTable, changeOfDeletion, changeOfDeletion, changeOfDeletionOnTable, changeOfDeletionOnTable, changeOfModification, changeOfModification, changeOfModificationOnTable, changeOfModificationOnTable, changeOnTable, changeOnTable, changeOnTableWithPkscolumnAmongTheModifiedOnes, columnAmongTheModifiedOnes, columnAmongTheModifiedOnesrowAtEndPoint, rowAtStartPointpublic ChangeRowValueAssert value()
value in interface ToValue<ChangeRowValueAssert>AbstractSubAssert.value(),
AbstractValueAssert.value(),
AbstractSubAssert.value(),
AbstractValueAssert.value(),
value(),
ChangeRowValueAssert.value()public ChangeRowValueAssert value(int index)
index in parameter.value in interface ToValue<ChangeRowValueAssert>index - The index corresponding to the value.AbstractSubAssert.value(int),
AbstractValueAssert.value(int),
AbstractSubAssert.value(int),
AbstractValueAssert.value(int),
value(int),
ChangeRowValueAssert.value(int)public ChangeRowValueAssert value(String columnName)
value in interface ToValueFromRow<ChangeRowValueAssert>columnName - The column name.AbstractRowAssert.value(String),
AbstractRowValueAssert.value(String),
value(String),
ChangeRowValueAssert.value(String)public ChangeRowAssert hasNumberOfColumns(int expected)
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);
hasNumberOfColumns in interface AssertOnNumberOfColumns<ChangeRowAssert>expected - The number to compare to the number of columns.this assertion object.AbstractDbAssert.hasNumberOfColumns(int),
AbstractRowAssert.hasNumberOfColumns(int),
hasNumberOfColumns(int)public ChangeRowAssert hasValues(Object... expected)
Example where the assertion verifies that the values in the first Row of the Table 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));
hasValues in interface AssertOnRowEquality<ChangeRowAssert>expected - The expected values.this assertion object.AbstractRowAssert.hasValues(Object...),
hasValues(Object...)public ChangeRowAssert exists()
Example where the assertion verifies that the row at end point of the first change are equal exists :
assertThat(changes).change().rowAtEndPoint().exists();
exists in interface AssertOnRowOfChangeExistence<ChangeRowAssert>this assertion object.exists()public ChangeRowAssert doesNotExist()
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();
doesNotExist in interface AssertOnRowOfChangeExistence<ChangeRowAssert>this assertion object.doesNotExist()public ChangeAssert returnToChange()
Change.Change.Copyright © 2015 AssertJ. All Rights Reserved.