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 AssertOnNumberOfRows<T extends AssertOnNumberOfRows<T>>
Modifier and Type | Method and Description |
---|---|
T |
hasNumberOfRows(int expected)
Verifies that the number of rows is equal to the number in parameter.
|
T hasNumberOfRows(int expected)
Example where the assertion verifies that the table has 2 rows :
assertThat(table).hasNumberOfRows(2);
Example where the assertion verifies that the column with index 1 of the table has 5 rows :
assertThat(table).column(1).hasNumberOfRows(5);
expected
- The number to compare to the number of rows.this
assertion object.AssertionError
- If the number of rows is different to the number in parameter.AbstractDbAssert.hasNumberOfRows(int)
,
AbstractColumnAssert.hasNumberOfRows(int)
Copyright © 2015 AssertJ. All Rights Reserved.