public class WithThrowable extends Object
| Modifier and Type | Method and Description |
|---|---|
ThrowableAssertAlternative<?> |
withThrowableOfType(Class<? extends Throwable> type)
Checks that the underlying throwable is of the given type and returns a
ThrowableAssertAlternative to chain
further assertions on the underlying throwable. |
public ThrowableAssertAlternative<?> withThrowableOfType(Class<? extends Throwable> type)
ThrowableAssertAlternative to chain
further assertions on the underlying throwable.type - the expected Throwable typeThrowableAssertAlternative built with underlying throwable.Copyright © 2025. All rights reserved.