public class ExpectedExceptionExtension extends Object implements org.junit.jupiter.api.extension.TestExecutionExceptionHandler
ExpectedException
to support annotating tests with a specific exception that indicates a
success (we are expecting that exception in that tested condition).ExpectedException| Constructor and Description |
|---|
ExpectedExceptionExtension() |
| Modifier and Type | Method and Description |
|---|---|
void |
handleTestExecutionException(org.junit.jupiter.api.extension.ExtensionContext context,
Throwable throwable) |
public void handleTestExecutionException(org.junit.jupiter.api.extension.ExtensionContext context,
Throwable throwable)
throws Throwable
handleTestExecutionException in interface org.junit.jupiter.api.extension.TestExecutionExceptionHandlerThrowableCopyright © 2001-2022 Red Hat, Inc. All Rights Reserved.