D - The class of the actual value (an sub-class of AbstractDbData).A - The class of the original assert (an sub-class of AbstractDbAssert).C - The class of this assert (an sub-class of AbstractColumnAssert).CV - The class of this assertion on the value (an sub-class of AbstractColumnValueAssert).R - The class of the equivalent row assert (an sub-class of AbstractRowAssert).RV - The class of the equivalent row assertion on the value (an sub-class of AbstractRowValueAssert).public abstract class AbstractDbAssert<D extends AbstractDbData<D>,A extends AbstractDbAssert<D,A,C,CV,R,RV>,C extends AbstractColumnAssert<D,A,C,CV,R,RV>,CV extends AbstractColumnValueAssert<D,A,C,CV,R,RV>,R extends AbstractRowAssert<D,A,C,CV,R,RV>,RV extends AbstractRowValueAssert<D,A,C,CV,R,RV>> extends AbstractAssert<A> implements OriginWithColumnsAndRows<C,R>, AssertOnNumberOfColumns<A>, AssertOnNumberOfRows<A>
Table or Request) assertions.info, myself| Modifier and Type | Method and Description |
|---|---|
C |
column()
|
C |
column(int index)
Returns assertion methods on the
Column at the index in parameter. |
C |
column(String columnName)
Returns assertion methods on the
Column corresponding to the column name in parameter. |
A |
hasNumberOfColumns(int expected)
Verifies that the number of columns is equal to the number in parameter.
|
A |
hasNumberOfColumnsGreaterThan(int expected)
Verifies that the number of columns is greater than the number in parameter.
|
A |
hasNumberOfColumnsGreaterThanOrEqualTo(int expected)
Verifies that the number of columns is greater than or equal to the number in parameter.
|
A |
hasNumberOfColumnsLessThan(int expected)
Verifies that the number of columns is less than the number in parameter.
|
A |
hasNumberOfColumnsLessThanOrEqualTo(int expected)
Verifies that the number of columns is less than or equal to the number in parameter.
|
A |
hasNumberOfRows(int expected)
Verifies that the number of rows is equal to the number in parameter.
|
A |
hasNumberOfRowsGreaterThan(int expected)
Verifies that the number of rows is greater than the number in parameter.
|
A |
hasNumberOfRowsGreaterThanOrEqualTo(int expected)
Verifies that the number of rows is greater than or equal to the number in parameter.
|
A |
hasNumberOfRowsLessThan(int expected)
Verifies that the number of rows is less than the number in parameter.
|
A |
hasNumberOfRowsLessThanOrEqualTo(int expected)
Verifies that the number of rows is less than or equal to the number in parameter.
|
A |
isEmpty()
Verifies that the number of rows is zero.
|
R |
row()
|
R |
row(int index)
Returns assertion methods on the
Row at the index in parameter. |
as, as, describedAs, describedAs, getInfopublic R row()
row in interface ToRow<R extends AbstractRowAssert<D,A,C,CV,R,RV>>Row.row(),
row(),
AbstractAssertWithOriginWithColumnsAndRows.row(),
AbstractAssertWithOriginWithColumnsAndRows.row(),
AbstractAssertWithOriginWithColumnsAndRows.row(),
AbstractAssertWithOriginWithColumnsAndRows.row()public R row(int index)
Row at the index in parameter.row in interface ToRow<R extends AbstractRowAssert<D,A,C,CV,R,RV>>index - The index corresponding to the Row.Row.row(int),
row(int),
AbstractAssertWithOriginWithColumnsAndRows.row(int),
AbstractAssertWithOriginWithColumnsAndRows.row(int),
AbstractAssertWithOriginWithColumnsAndRows.row(int),
AbstractAssertWithOriginWithColumnsAndRows.row(int)public C column()
column in interface ToColumn<C extends AbstractColumnAssert<D,A,C,CV,R,RV>>Column.column(),
column(),
AbstractAssertWithOriginWithColumnsAndRows.column(),
AbstractAssertWithOriginWithColumnsAndRows.column(),
AbstractAssertWithOriginWithColumnsAndRows.column(),
AbstractAssertWithOriginWithColumnsAndRows.column(),
ChangeAssert.column(),
AbstractAssertWithOriginWithColumnsAndRowsFromChange.column(),
AbstractAssertWithOriginWithColumnsAndRowsFromChange.column(),
AbstractAssertWithOriginWithColumnsAndRowsFromChange.column(),
AbstractAssertWithOriginWithColumnsAndRowsFromChange.column()public C column(int index)
Column at the index in parameter.column in interface ToColumn<C extends AbstractColumnAssert<D,A,C,CV,R,RV>>index - The index corresponding to the Column.Column.column(int),
column(int),
AbstractAssertWithOriginWithColumnsAndRows.column(int),
AbstractAssertWithOriginWithColumnsAndRows.column(int),
AbstractAssertWithOriginWithColumnsAndRows.column(int),
AbstractAssertWithOriginWithColumnsAndRows.column(int),
ChangeAssert.column(int),
AbstractAssertWithOriginWithColumnsAndRowsFromChange.column(int),
AbstractAssertWithOriginWithColumnsAndRowsFromChange.column(int),
AbstractAssertWithOriginWithColumnsAndRowsFromChange.column(int),
AbstractAssertWithOriginWithColumnsAndRowsFromChange.column(int)public C column(String columnName)
Column corresponding to the column name in parameter.column in interface ToColumn<C extends AbstractColumnAssert<D,A,C,CV,R,RV>>columnName - The column name.Column.column(String),
column(String),
AbstractAssertWithOriginWithColumnsAndRows.column(String),
AbstractAssertWithOriginWithColumnsAndRows.column(String),
AbstractAssertWithOriginWithColumnsAndRows.column(String),
AbstractAssertWithOriginWithColumnsAndRows.column(String),
ChangeAssert.column(String),
AbstractAssertWithOriginWithColumnsAndRowsFromChange.column(String),
AbstractAssertWithOriginWithColumnsAndRowsFromChange.column(String),
AbstractAssertWithOriginWithColumnsAndRowsFromChange.column(String),
AbstractAssertWithOriginWithColumnsAndRowsFromChange.column(String)public A isEmpty()
Example where the assertion verifies that the table is empty :
assertThat(table).isEmpty();
isEmpty in interface AssertOnNumberOfRows<A extends AbstractDbAssert<D,A,C,CV,R,RV>>this assertion object.isEmpty(),
AbstractColumnAssert.isEmpty()public A 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);
hasNumberOfRows in interface AssertOnNumberOfRows<A extends AbstractDbAssert<D,A,C,CV,R,RV>>expected - The number to compare to the number of rows.this assertion object.hasNumberOfRows(int),
AbstractColumnAssert.hasNumberOfRows(int)public A hasNumberOfRowsGreaterThan(int expected)
Example where the assertion verifies that the table has more than 8 rows :
assertThat(table).hasNumberOfRowsGreaterThan(8);
Example where the assertion verifies that the first row of the table has more than 8 rows :
assertThat(table).row().hasNumberOfRowsGreaterThan(8);
Example where the assertion verifies that the row at end point of the first change has more than 8 rows :
assertThat(changes).change().rowAtEndPoint().hasNumberOfRowsGreaterThan(8);
hasNumberOfRowsGreaterThan in interface AssertOnNumberOfRows<A extends AbstractDbAssert<D,A,C,CV,R,RV>>expected - The number to compare to the number of rows.this assertion object.hasNumberOfRowsGreaterThan(int),
AbstractColumnAssert.hasNumberOfRowsGreaterThan(int)public A hasNumberOfRowsLessThan(int expected)
Example where the assertion verifies that the table has less than 8 rows :
assertThat(table).hasNumberOfRowsLessThan(8);
Example where the assertion verifies that the first row of the table has less than 8 rows :
assertThat(table).row().hasNumberOfRowsLessThan(8);
Example where the assertion verifies that the row at end point of the first change has less than 8 rows :
assertThat(changes).change().rowAtEndPoint().hasNumberOfRowsLessThan(8);
hasNumberOfRowsLessThan in interface AssertOnNumberOfRows<A extends AbstractDbAssert<D,A,C,CV,R,RV>>expected - The number to compare to the number of rows.this assertion object.hasNumberOfRowsLessThan(int),
AbstractColumnAssert.hasNumberOfRowsLessThan(int)public A hasNumberOfRowsGreaterThanOrEqualTo(int expected)
Example where the assertion verifies that the table has at least 8 rows :
assertThat(table).hasNumberOfRowsGreaterThanOrEqualTo(8);
Example where the assertion verifies that the first row of the table has at least 8 rows :
assertThat(table).row().hasNumberOfRowsGreaterThanOrEqualTo(8);
Example where the assertion verifies that the row at end point of the first change has at least 8 rows :
assertThat(changes).change().rowAtEndPoint().hasNumberOfRowsGreaterThanOrEqualTo(8);
hasNumberOfRowsGreaterThanOrEqualTo in interface AssertOnNumberOfRows<A extends AbstractDbAssert<D,A,C,CV,R,RV>>expected - The number to compare to the number of rows.this assertion object.hasNumberOfRowsGreaterThanOrEqualTo(int),
AbstractColumnAssert.hasNumberOfRowsGreaterThanOrEqualTo(int)public A hasNumberOfRowsLessThanOrEqualTo(int expected)
Example where the assertion verifies that the table has at most 8 rows :
assertThat(table).hasNumberOfRowsLessThanOrEqualTo(8);
Example where the assertion verifies that the first row of the table has at most 8 rows :
assertThat(table).row().hasNumberOfRowsLessThanOrEqualTo(8);
Example where the assertion verifies that the row at end point of the first change has at most 8 rows :
assertThat(changes).change().rowAtEndPoint().hasNumberOfRowsLessThanOrEqualTo(8);
hasNumberOfRowsLessThanOrEqualTo in interface AssertOnNumberOfRows<A extends AbstractDbAssert<D,A,C,CV,R,RV>>expected - The number to compare to the number of rows.this assertion object.hasNumberOfRowsLessThanOrEqualTo(int),
AbstractColumnAssert.hasNumberOfRowsLessThanOrEqualTo(int)public A 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);
hasNumberOfColumns in interface AssertOnNumberOfColumns<A extends AbstractDbAssert<D,A,C,CV,R,RV>>expected - The number to compare to the number of columns.this assertion object.hasNumberOfColumns(int),
AbstractRowAssert.hasNumberOfColumns(int),
ChangeRowAssert.hasNumberOfColumns(int)public A 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);
hasNumberOfColumnsGreaterThan in interface AssertOnNumberOfColumns<A extends AbstractDbAssert<D,A,C,CV,R,RV>>expected - The number to compare to the number of columns.this assertion object.hasNumberOfColumnsGreaterThan(int),
AbstractRowAssert.hasNumberOfColumnsGreaterThan(int),
ChangeRowAssert.hasNumberOfColumnsGreaterThan(int)public A 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);
hasNumberOfColumnsLessThan in interface AssertOnNumberOfColumns<A extends AbstractDbAssert<D,A,C,CV,R,RV>>expected - The number to compare to the number of columns.this assertion object.hasNumberOfColumnsLessThan(int),
AbstractRowAssert.hasNumberOfColumnsLessThan(int),
ChangeRowAssert.hasNumberOfColumnsLessThan(int)public A 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);
hasNumberOfColumnsGreaterThanOrEqualTo in interface AssertOnNumberOfColumns<A extends AbstractDbAssert<D,A,C,CV,R,RV>>expected - The number to compare to the number of columns.this assertion object.hasNumberOfColumnsGreaterThanOrEqualTo(int),
AbstractRowAssert.hasNumberOfColumnsGreaterThanOrEqualTo(int),
ChangeRowAssert.hasNumberOfColumnsGreaterThanOrEqualTo(int)public A 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);
hasNumberOfColumnsLessThanOrEqualTo in interface AssertOnNumberOfColumns<A extends AbstractDbAssert<D,A,C,CV,R,RV>>expected - The number to compare to the number of columns.this assertion object.hasNumberOfColumnsLessThanOrEqualTo(int),
AbstractRowAssert.hasNumberOfColumnsLessThanOrEqualTo(int),
ChangeRowAssert.hasNumberOfColumnsLessThanOrEqualTo(int)Copyright © 2015–2017 AssertJ. All rights reserved.