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 AssertOnDataType<T extends AssertOnDataType<T>>
The different type of data are enumerated in DataType.
| Modifier and Type | Method and Description |
|---|---|
T |
isOnDataType(DataType expected)
Verifies that the data type on which is the change is equal to the type in parameter.
|
T |
isOnRequest()
Verifies that the data type on which is the change is a request.
|
T |
isOnTable()
Verifies that the data type on which is the change is a table.
|
T |
isOnTable(String name)
Verifies that the change is on a table with the name in parameter.
|
T isOnDataType(DataType expected)
Example where the assertion verifies that the change is on data type TABLE :
assertThat(changes).change(1).isOnDataType(DataType.TABLE);
expected - The expected type to compare to.this assertion object.AssertionError - If the type is different to the type in parameter.isOnTable(),
isOnRequest(),
ChangeAssert.isOnDataType(org.assertj.db.type.DataType)T isOnTable()
Example where the assertion verifies that the change is on data type TABLE :
assertThat(changes).change(1).isOnTable();
This assertion method is equivalent to :
xxxxx.isOnDataType(DataType.TABLE);
this assertion object.AssertionError - If the type of data is not table.DataType.TABLE,
ChangeAssert.isOnTable()T isOnRequest()
Example where the assertion verifies that the change is on data type REQUEST :
assertThat(changes).change(1).isOnRequest();
This assertion method is equivalent to :
xxxxx.isOnDataType(DataType.REQUEST);
this assertion object.AssertionError - If the type of data is not request.DataType.REQUEST,
ChangeAssert.isOnRequest()T isOnTable(String name)
Example where the assertion verifies that the change is on TABLE called movie :
assertThat(changes).change(1).isOnTable("movie");
name - The name of the table on which is the change.this assertion object.AssertionError - If the type of data is not table or if the table have a different name.NullPointerException - If the name in parameter is null.ChangeAssert.isOnTable(String)Copyright © 2015–2017 AssertJ. All rights reserved.