public class ChangeRowAssert extends AbstractAssertWithOriginWithColumnsAndRowsFromChange<ChangeRowAssert,ChangeAssert> implements RowElement, OriginWithValuesFromRow<ChangesAssert,ChangeAssert,ChangeColumnAssert,ChangeRowAssert,ChangeRowValueAssert>, AssertOnRowEquality<ChangeRowAssert>, AssertOnNumberOfColumns<ChangeRowAssert>, AssertOnRowOfChangeExistence<ChangeRowAssert>
Row of a Change.origininfo, myself| Constructor and Description |
|---|
ChangeRowAssert(ChangeAssert origin,
Row row)
Constructor.
|
| 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 |
hasNumberOfColumnsGreaterThan(int expected)
Verifies that the number of columns is greater than the number in parameter.
|
ChangeRowAssert |
hasNumberOfColumnsGreaterThanOrEqualTo(int expected)
Verifies that the number of columns is greater than or equal to the number in parameter.
|
ChangeRowAssert |
hasNumberOfColumnsLessThan(int expected)
Verifies that the number of columns is less than the number in parameter.
|
ChangeRowAssert |
hasNumberOfColumnsLessThanOrEqualTo(int expected)
Verifies that the number of columns is less than or 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, describedAs, getInfoclone, 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 ChangeRowAssert(ChangeAssert origin, Row row)
public 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 hasNumberOfColumnsGreaterThan(int expected)
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);
hasNumberOfColumnsGreaterThan in interface AssertOnNumberOfColumns<ChangeRowAssert>expected - The number to compare to the number of columns.this assertion object.AbstractDbAssert.hasNumberOfColumnsGreaterThan(int),
AbstractRowAssert.hasNumberOfColumnsGreaterThan(int),
hasNumberOfColumnsGreaterThan(int)public ChangeRowAssert hasNumberOfColumnsLessThan(int expected)
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);
hasNumberOfColumnsLessThan in interface AssertOnNumberOfColumns<ChangeRowAssert>expected - The number to compare to the number of columns.this assertion object.AbstractDbAssert.hasNumberOfColumnsLessThan(int),
AbstractRowAssert.hasNumberOfColumnsLessThan(int),
hasNumberOfColumnsLessThan(int)public ChangeRowAssert hasNumberOfColumnsGreaterThanOrEqualTo(int expected)
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);
hasNumberOfColumnsGreaterThanOrEqualTo in interface AssertOnNumberOfColumns<ChangeRowAssert>expected - The number to compare to the number of columns.this assertion object.AbstractDbAssert.hasNumberOfColumnsGreaterThanOrEqualTo(int),
AbstractRowAssert.hasNumberOfColumnsGreaterThanOrEqualTo(int),
hasNumberOfColumnsGreaterThanOrEqualTo(int)public ChangeRowAssert hasNumberOfColumnsLessThanOrEqualTo(int expected)
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);
hasNumberOfColumnsLessThanOrEqualTo in interface AssertOnNumberOfColumns<ChangeRowAssert>expected - The number to compare to the number of columns.this assertion object.AbstractDbAssert.hasNumberOfColumnsLessThanOrEqualTo(int),
AbstractRowAssert.hasNumberOfColumnsLessThanOrEqualTo(int),
hasNumberOfColumnsLessThanOrEqualTo(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–2017 AssertJ. All rights reserved.