public class AssertionsOnValueClass extends Object
AssertOnValueClass
Modifier and Type | Method and Description |
---|---|
static <A extends AbstractAssert<?>> |
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.
|
public static <A extends AbstractAssert<?>> A isOfClass(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, Class<?> classOfValue)
A
- The type of the assertion which call this method.assertion
- The assertion which call this method.info
- Writable information about an assertion.value
- The value.classOfValue
- The expected class to compare to.this
assertion object.AssertionError
- If the class of the value is different to the class in parameter.AssertJDBException
- If the class is null
.Copyright © 2015–2017 AssertJ. All rights reserved.