R - The class of a assertion on a row (an sub-class of RowElement).public interface ToRowFromChange<R extends RowElement> extends Navigation
Row from a Change.
The different methods return an assertion on one row RowElement.
These methods exists when navigating (at the beginning assertThat()) from changes.
As shown in the diagram below, it is possible to call the method to navigate to a RowElement from :
ChangeAssert)ChangeColumnAssert)ChangeColumnValueAssert)ChangeRowAssert)ChangeRowValueAssert)
It is important to keep in mind that the methods are executed from the point of view of the last instance with assertion methods on a change (ChangeAssert).
So all the lines of code below are equivalent : they point on the row at end point.
assertThat(changes).change().rowAtEndPoint()......; // Point directly on the row at end point
// Use the returnToChange() method to return on the change and access to the row at end point
assertThat(changes).change().rowAtStartPoint().returnToChange().rowAtEndPoint()......;
assertThat(changes).change().rowAtStartPoint().rowAtEndPoint()......; // Same as precedent but returnToChange() is implicit
assertThat(changes).change().column().rowAtEndPoint()......; // The method can be call from a column
assertThat(changes).change().column().value().rowAtEndPoint()......;
assertThat(changes).change().column(1).value().rowAtEndPoint()......;
// Equivalent to the precedent but with the use of the methods to return to origin
assertThat(changes).change().column(1).value().returnToColumn().returnToChange().rowAtEndPoint()......;
| Modifier and Type | Method and Description |
|---|---|
R |
rowAtEndPoint()
Returns assertion methods on the
Row at end point. |
R |
rowAtStartPoint()
Returns assertion methods on the
Row at start point. |
R rowAtStartPoint()
Row at start point.Row at start point.ChangeAssert.rowAtStartPoint(),
AbstractAssertWithOriginWithColumnsAndRowsFromChange.rowAtStartPoint(),
AbstractAssertWithOriginWithColumnsAndRowsFromChange.rowAtStartPoint(),
AbstractAssertWithOriginWithColumnsAndRowsFromChange.rowAtStartPoint(),
AbstractAssertWithOriginWithColumnsAndRowsFromChange.rowAtStartPoint()R rowAtEndPoint()
Row at end point.Row at end point.ChangeAssert.rowAtEndPoint(),
AbstractAssertWithOriginWithColumnsAndRowsFromChange.rowAtEndPoint(),
AbstractAssertWithOriginWithColumnsAndRowsFromChange.rowAtEndPoint(),
AbstractAssertWithOriginWithColumnsAndRowsFromChange.rowAtEndPoint(),
AbstractAssertWithOriginWithColumnsAndRowsFromChange.rowAtEndPoint()Copyright © 2015–2016 AssertJ. All rights reserved.