public class AssertionsOnColumnClass extends Object
AssertOnColumnClass
Modifier and Type | Method and Description |
---|---|
static <A extends AbstractAssert<?>> |
isOfClass(A assertion,
org.assertj.core.api.WritableAssertionInfo info,
List<Value> valuesList,
Class<?> expected,
boolean lenient)
Verifies that the class of the values of the column is equal to the class in parameter.
|
public static <A extends AbstractAssert<?>> A isOfClass(A assertion, org.assertj.core.api.WritableAssertionInfo info, List<Value> valuesList, Class<?> expected, boolean lenient)
A
- The type of the assertion which call this method.assertion
- The assertion which call this method.info
- Writable information about an assertion.valuesList
- The list of values.expected
- The expected class to compare to.lenient
- true
if the test is lenient : if the class of a value is not identified (for example when the
value is null
), it consider that it is ok.this
assertion object.AssertionError
- If the class of the column is different to the class in parameter.AssertJDBException
- If the class is null
.Copyright © 2020 AssertJ. All rights reserved.