Class AssertionsOnDataType
java.lang.Object
org.assertj.db.api.assertions.impl.AssertionsOnDataType
Implements the assertion methods on the type of data (from a table or from a request).
The different type of data are enumerated in DataType.
- Author:
- Régis Pouiller
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic <A extends AbstractAssert<?>>
AisOnDataType(A assertion, org.assertj.core.api.WritableAssertionInfo info, Change change, DataType expected) Verifies that the data type on which is the change is equal to the type in parameter.static <A extends AbstractAssert<?>>
AisOnRequest(A assertion, org.assertj.core.api.WritableAssertionInfo info, Change change) Verifies that the data type on which is the change is a request.static <A extends AbstractAssert<?>>
AVerifies that the data type on which is the change is a table.static <A extends AbstractAssert<?>>
AisOnTable(A assertion, org.assertj.core.api.WritableAssertionInfo info, Change change, LetterCase tableLetterCase, String name) Verifies that the change is on a table with the name in parameter.
-
Method Details
-
isOnDataType
public static <A extends AbstractAssert<?>> A isOnDataType(A assertion, org.assertj.core.api.WritableAssertionInfo info, Change change, DataType expected) Verifies that the data type on which is the change is equal to the type in parameter.- Type Parameters:
A- The type of the assertion which call this method.- Parameters:
assertion- The assertion which call this method.info- Writable information about an assertion.change- The change.expected- The expected type to compare to.- Returns:
thisassertion object.- Throws:
AssertionError- If the type is different to the type in parameter.
-
isOnTable
public static <A extends AbstractAssert<?>> A isOnTable(A assertion, org.assertj.core.api.WritableAssertionInfo info, Change change) Verifies that the data type on which is the change is a table.- Type Parameters:
A- The type of the assertion which call this method.- Parameters:
assertion- The assertion which call this method.info- Writable information about an assertion.change- The change.- Returns:
thisassertion object.- Throws:
AssertionError- If the type of data is not table.
-
isOnRequest
public static <A extends AbstractAssert<?>> A isOnRequest(A assertion, org.assertj.core.api.WritableAssertionInfo info, Change change) Verifies that the data type on which is the change is a request.- Type Parameters:
A- The type of the assertion which call this method.- Parameters:
assertion- The assertion which call this method.info- Writable information about an assertion.change- The change.- Returns:
thisassertion object.- Throws:
AssertionError- If the type of data is not request.
-
isOnTable
public static <A extends AbstractAssert<?>> A isOnTable(A assertion, org.assertj.core.api.WritableAssertionInfo info, Change change, LetterCase tableLetterCase, String name) Verifies that the change is on a table with the name in parameter.- Type Parameters:
A- The type of the assertion which call this method.- Parameters:
assertion- The assertion which call this method.info- Writable information about an assertion.change- The change.tableLetterCase- The letter case of table.name- The name of the table on which is the change.- Returns:
thisassertion object.- Throws:
AssertionError- If the type of data is not table or if the table have a different name.NullPointerException- If the name in parameter isnull.
-