Package org.assertj.db.api.assertions
Interface AssertOnColumnName<T extends AssertOnColumnName<T>>
- Type Parameters:
T
- The "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation" for more details.
- All Known Implementing Classes:
AbstractColumnAssert
,AbstractRowValueAssert
,ChangeColumnAssert
,ChangeRowValueAssert
,RequestColumnAssert
,RequestRowValueAssert
,TableColumnAssert
,TableRowValueAssert
public interface AssertOnColumnName<T extends AssertOnColumnName<T>>
Defines the assertion method on the name of a column.
- Author:
- Régis Pouiller
-
Method Summary
Modifier and TypeMethodDescriptionhasColumnName
(String columnName) Verifies that the name of a column is equal to the parameter.
-
Method Details
-
hasColumnName
Verifies that the name of a column is equal to the parameter.Example where the assertion verifies that the column name of the first
Column
of theTable
is equal to "title" :assertThat(table).column().hasColumnName("title");
Example where the assertion verifies that the first value of the first
Row
of theTable
is equal to "title" :assertThat(table).row().value().hasColumnName("title");
Example where the assertion verifies that the column name of the first
Column
of theTable
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 theTable
is equal to "title" :assertThat(changes).change(1).row().value().hasColumnName("title");
- Parameters:
columnName
- The expected column name.- Returns:
this
assertion object.- Throws:
AssertionError
- If the column name is not equal to the parameter.- See Also:
-