Package org.junit.jupiter.api
Class AssertInstanceOf
java.lang.Object
org.junit.jupiter.api.AssertInstanceOf
AssertInstanceOf
is a collection of utility methods that support
asserting that an object is of an expected type — in other words, if it
can be assigned to the expected type.- Since:
- 5.8
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static <T> T
assertInstanceOf
(Class<T> expectedType, Object actualValue) private static <T> T
assertInstanceOf
(Class<T> expectedType, Object actualValue, Object messageOrSupplier) (package private) static <T> T
assertInstanceOf
(Class<T> expectedType, Object actualValue, String message) (package private) static <T> T
assertInstanceOf
(Class<T> expectedType, Object actualValue, Supplier<String> messageSupplier)
-
Constructor Details
-
AssertInstanceOf
private AssertInstanceOf()
-
-
Method Details
-
assertInstanceOf
-
assertInstanceOf
-
assertInstanceOf
-
assertInstanceOf
-