T
- The "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation"
for more details.public interface AssertOnColumnName<T extends AssertOnColumnName<T>>
Modifier and Type | Method and Description |
---|---|
T |
hasColumnName(String columnName)
Verifies that the name of a column is equal to the parameter.
|
T 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");
columnName
- The expected column name.this
assertion object.AssertionError
- If the column name is not equal to the parameter.AbstractColumnAssert.hasColumnName(String)
,
AbstractRowValueAssert.hasColumnName(String)
,
ChangeColumnAssert.hasColumnName(String)
,
ChangeRowValueAssert.hasColumnName(String)
Copyright © 2015–2016 AssertJ. All rights reserved.