D
- The class of the actual value (an sub-class of AbstractDbData
).A
- The class of the original assertion (an sub-class of AbstractDbAssert
).C
- The class of the equivalent row assertion (an sub-class of AbstractColumnAssert
).CV
- The class of the equivalent row assertion on the value (an sub-class of AbstractColumnValueAssert
).R
- The class of this assertion (an sub-class of AbstractRowAssert
).RV
- The class of this assertion on the value (an sub-class of AbstractRowValueAssert
).public abstract class AbstractRowValueAssert<D extends AbstractDbData<D>,A extends AbstractDbAssert<D,A,C,CV,R,RV>,C extends AbstractColumnAssert<D,A,C,CV,R,RV>,CV extends AbstractColumnValueAssert<D,A,C,CV,R,RV>,R extends AbstractRowAssert<D,A,C,CV,R,RV>,RV extends AbstractRowValueAssert<D,A,C,CV,R,RV>> extends AbstractValueAssert<D,A,R,RV,C,CV,R,RV> implements ToValueFromRow<RV>, AssertOnColumnName<RV>
Row
.value
origin
info, myself
Modifier and Type | Method and Description |
---|---|
RV |
hasColumnName(String columnName)
Verifies that the name of a column is equal to the parameter.
|
R |
returnToRow()
Returns to level of assertion methods on a
Row . |
RV |
value(String columnName)
Returns assertion methods on the value corresponding to the column name in parameter.
|
doesNotHave, has, is, isAfter, isAfter, isAfter, isAfter, isAfterOrEqualTo, isAfterOrEqualTo, isAfterOrEqualTo, isAfterOrEqualTo, isBefore, isBefore, isBefore, isBefore, isBeforeOrEqualTo, isBeforeOrEqualTo, isBeforeOrEqualTo, isBeforeOrEqualTo, isBoolean, isBytes, isCloseTo, isCloseTo, isCloseTo, isCloseTo, isCloseTo, isCloseTo, isCloseTo, isCloseTo, isDate, isDateTime, isEqualTo, isEqualTo, isEqualTo, isEqualTo, isEqualTo, isEqualTo, isEqualTo, isEqualTo, isEqualTo, isEqualTo, isFalse, isGreaterThan, isGreaterThanOrEqualTo, isLessThan, isLessThanOrEqualTo, isNot, isNotEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, isNotNull, isNotZero, isNull, isNumber, isOfAnyTypeIn, isOfClass, isOfType, isText, isTime, isTrue, isUUID, isZero, satisfies, value, value
column, column, column, row, row
returnToOrigin
as, as, describedAs, describedAs, getInfo
public RV value(String columnName)
value
in interface ToValueFromRow<RV extends AbstractRowValueAssert<D,A,C,CV,R,RV>>
columnName
- The column name.AbstractRowAssert.value(String)
,
value(String)
,
ChangeRowAssert.value(String)
,
ChangeRowValueAssert.value(String)
public RV hasColumnName(String columnName)
Example where the assertion verifies that the column name of the first Column
of the Table
is equal to
"title" :
assertThat(table).column().hasColumnName("title");
Example where the assertion verifies that the first value of the first Row
of the Table
is equal to
"title" :
assertThat(table).row().value().hasColumnName("title");
Example where the assertion verifies that the column name of the first Column
of the Table
is equal to
"title" :
assertThat(changes).change(1).column().hasColumnName("title");
Example where the assertion verifies that the first value of the first Row
of the Table
is equal to
"title" :
assertThat(changes).change(1).row().value().hasColumnName("title");
hasColumnName
in interface AssertOnColumnName<RV extends AbstractRowValueAssert<D,A,C,CV,R,RV>>
columnName
- The expected column name.this
assertion object.AbstractColumnAssert.hasColumnName(String)
,
hasColumnName(String)
,
ChangeColumnAssert.hasColumnName(String)
,
ChangeRowValueAssert.hasColumnName(String)
Copyright © 2015–2019 AssertJ. All rights reserved.