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 AssertOnNumberOfColumns<T extends AssertOnNumberOfColumns<T>>
Modifier and Type | Method and Description |
---|---|
T |
hasNumberOfColumns(int expected)
Verifies that the number of columns is equal to the number in parameter.
|
T hasNumberOfColumns(int expected)
Example where the assertion verifies that the table has 8 columns :
assertThat(table).hasNumberOfColumns(8);
Example where the assertion verifies that the first row of the table has 8 columns :
assertThat(table).row().hasNumberOfColumns(8);
Example where the assertion verifies that the row at end point of the first change has 8 columns :
assertThat(changes).change().rowAtEndPoint().hasNumberOfColumns(8);
expected
- The number to compare to the number of columns.this
assertion object.AssertionError
- If the number of columns is different to the number in parameter.AbstractDbAssert.hasNumberOfColumns(int)
,
AbstractRowAssert.hasNumberOfColumns(int)
,
ChangeRowAssert.hasNumberOfColumns(int)
Copyright © 2015 AssertJ. All Rights Reserved.