public class AssertionsOnDataType extends Object
The different type of data are enumerated in DataType
.
AssertOnDataType
Modifier and Type | Method and Description |
---|---|
static <A extends AbstractAssert<?>> |
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.
|
static <A extends AbstractAssert<?>> |
isOnRequest(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<?>> |
isOnTable(A assertion,
org.assertj.core.api.WritableAssertionInfo info,
Change change)
Verifies that the data type on which is the change is a table.
|
static <A extends AbstractAssert<?>> |
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.
|
public static <A extends AbstractAssert<?>> A isOnDataType(A assertion, org.assertj.core.api.WritableAssertionInfo info, Change change, DataType expected)
A
- The type of the assertion which call this method.assertion
- The assertion which call this method.info
- Writable information about an assertion.change
- The change.expected
- The expected type to compare to.this
assertion object.AssertionError
- If the type is different to the type in parameter.public static <A extends AbstractAssert<?>> A isOnTable(A assertion, org.assertj.core.api.WritableAssertionInfo info, Change change)
A
- The type of the assertion which call this method.assertion
- The assertion which call this method.info
- Writable information about an assertion.change
- The change.this
assertion object.AssertionError
- If the type of data is not table.public static <A extends AbstractAssert<?>> A isOnRequest(A assertion, org.assertj.core.api.WritableAssertionInfo info, Change change)
A
- The type of the assertion which call this method.assertion
- The assertion which call this method.info
- Writable information about an assertion.change
- The change.this
assertion object.AssertionError
- If the type of data is not request.public static <A extends AbstractAssert<?>> A isOnTable(A assertion, org.assertj.core.api.WritableAssertionInfo info, Change change, LetterCase tableLetterCase, String name)
A
- The type of the assertion which call this method.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.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
.Copyright © 2020 AssertJ. All rights reserved.