V - The class of a assertion on a value (an sub-class of ValueElement).public interface ToValueFromColumn<V extends ValueElement> extends Navigation
Column
(a column from a Change}.
The different methods return an assertion on one value ValueElement.
These methods exists when navigating (at the beginning assertThat()) from changes.
As shown in the diagram below, if navigating from changes, it is possible to call the method to navigate to a ColumnElement from :
ChangeColumnAssert)ChangeColumnValueAssert)
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 column of a change (ChangeAssert).
So all the lines of code below are equivalent : they point on the value at end point of first column.
assertThat(changes).change().column().valueAtEndPoint()......; // Point directly on the value at end point
// Use the returnToColumn() method to return on the column and access to the value at the end point
assertThat(changes).change().column().valueAtStartPoint().returnToColumn().valueAtEndPoint()......;
assertThat(changes).change().column().valueAtStartPoint().valueAtEndPoint()......; // Same as precedent but returnToColumn() is implicit
assertThat(changes).change().row().value().change(0).column().valueAtEndPoint()......;
// Equivalent to the precedent but with the use of the methods to return to origin
assertThat(changes).change().row().value().returnToRow().returnToChange().returnToChanges().change(0).column().value(1)......;
| Modifier and Type | Method and Description |
|---|---|
V |
valueAtEndPoint()
Returns assertion methods on the value at the end point.
|
V |
valueAtStartPoint()
Returns assertion methods on the value at the start point.
|
V valueAtStartPoint()
ChangeColumnAssert.valueAtStartPoint,
ChangeColumnValueAssert.valueAtStartPoint()V valueAtEndPoint()
ChangeColumnAssert.valueAtEndPoint,
ChangeColumnValueAssert.valueAtEndPoint()Copyright © 2015–2017 AssertJ. All rights reserved.