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 |
hasNumberOfColumnsGreaterThan(int expected)
Verifies that the number of columns is greater than the number in parameter.
|
T |
hasNumberOfColumnsGreaterThanOrEqualTo(int expected)
Verifies that the number of columns is greater than or equal to the number in parameter.
|
T |
hasNumberOfColumnsLessThan(int expected)
Verifies that the number of columns is less than the number in parameter.
|
T |
hasNumberOfColumnsLessThanOrEqualTo(int expected)
Verifies that the number of columns is less than or 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)T hasNumberOfColumnsGreaterThan(int expected)
Example where the assertion verifies that the table has more than 8 columns :
assertThat(table).hasNumberOfColumnsGreaterThan(8);
Example where the assertion verifies that the first row of the table has more than 8 columns :
assertThat(table).row().hasNumberOfColumnsGreaterThan(8);
Example where the assertion verifies that the row at end point of the first change has more than 8 columns :
assertThat(changes).change().rowAtEndPoint().hasNumberOfColumnsGreaterThan(8);
expected - The number to compare to the number of columns.this assertion object.AssertionError - If the number of columns is less than or equal to the number in parameter.AbstractDbAssert.hasNumberOfColumnsGreaterThan(int),
AbstractRowAssert.hasNumberOfColumnsGreaterThan(int),
ChangeRowAssert.hasNumberOfColumnsGreaterThan(int)T hasNumberOfColumnsLessThan(int expected)
Example where the assertion verifies that the table has less than 8 columns :
assertThat(table).hasNumberOfColumnsLessThan(8);
Example where the assertion verifies that the first row of the table has less than 8 columns :
assertThat(table).row().hasNumberOfColumnsLessThan(8);
Example where the assertion verifies that the row at end point of the first change has less than 8 columns :
assertThat(changes).change().rowAtEndPoint().hasNumberOfColumnsLessThan(8);
expected - The number to compare to the number of columns.this assertion object.AssertionError - If the number of columns is greater than or equal to the number in parameter.AbstractDbAssert.hasNumberOfColumnsLessThan(int),
AbstractRowAssert.hasNumberOfColumnsLessThan(int),
ChangeRowAssert.hasNumberOfColumnsLessThan(int)T hasNumberOfColumnsGreaterThanOrEqualTo(int expected)
Example where the assertion verifies that the table has at least 8 columns :
assertThat(table).hasNumberOfColumnsGreaterThanOrEqualTo(8);
Example where the assertion verifies that the first row of the table has at least 8 columns :
assertThat(table).row().hasNumberOfColumnsGreaterThanOrEqualTo(8);
Example where the assertion verifies that the row at end point of the first change has at least 8 columns :
assertThat(changes).change().rowAtEndPoint().hasNumberOfColumnsGreaterThanOrEqualTo(8);
expected - The number to compare to the number of columns.this assertion object.AssertionError - If the number of columns is less than the number in parameter.AbstractDbAssert.hasNumberOfColumnsGreaterThanOrEqualTo(int),
AbstractRowAssert.hasNumberOfColumnsGreaterThanOrEqualTo(int),
ChangeRowAssert.hasNumberOfColumnsGreaterThanOrEqualTo(int)T hasNumberOfColumnsLessThanOrEqualTo(int expected)
Example where the assertion verifies that the table has at most 8 columns :
assertThat(table).hasNumberOfColumnsLessThanOrEqualTo(8);
Example where the assertion verifies that the first row of the table has at most 8 columns :
assertThat(table).row().hasNumberOfColumnsLessThanOrEqualTo(8);
Example where the assertion verifies that the row at end point of the first change has at most 8 columns :
assertThat(changes).change().rowAtEndPoint().hasNumberOfColumnsLessThanOrEqualTo(8);
expected - The number to compare to the number of columns.this assertion object.AssertionError - If the number of columns is greater than the number in parameter.AbstractDbAssert.hasNumberOfColumnsLessThanOrEqualTo(int),
AbstractRowAssert.hasNumberOfColumnsLessThanOrEqualTo(int),
ChangeRowAssert.hasNumberOfColumnsLessThanOrEqualTo(int)Copyright © 2020 AssertJ. All rights reserved.