Class AssertionsOnValueClass
java.lang.Object
org.assertj.db.api.assertions.impl.AssertionsOnValueClass
Implements the assertion method on the class of a value.
- Since:
- 1.1.0
- Author:
- Régis Pouiller
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic <A extends AbstractAssert<?>>
AisOfClass
(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, Class<?> classOfValue) Verifies that the class of the value is equal to the class in parameter.
-
Method Details
-
isOfClass
public static <A extends AbstractAssert<?>> A isOfClass(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, Class<?> classOfValue) Verifies that the class of the value is equal to the class 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.value
- The value.classOfValue
- The expected class to compare to.- Returns:
this
assertion object.- Throws:
AssertionError
- If the class of the value is different to the class in parameter.AssertJDBException
- If the class isnull
.- Since:
- 1.1.0
-