instanceOf

public static ExpectedObject<Class<? extends T>> instanceOf<T, U extends T>(Class<U> type, boolean subtypes)(source)

Returns an expected object where the object is expected be an instance of the given type.

Return

the expected behavior

Parameters

type

the expected type

subtypes

if the actual object can be a subtype of the expected type

<T>

the type of the expected object