instanceOf
Returns an expected behavior where an exception of the given type is expected to be thrown.
Return
the expected behavior
Parameters
type
the type of the expected exception
<T>
the type of the expected exception
Returns an expected behavior where an exception of the given type is expected to be thrown.
the expected behavior
the type of the expected exception
the type of the expected exception