Class ExpectedToFailExtension

java.lang.Object
groovy.junit6.plugin.ExpectedToFailExtension
All Implemented Interfaces:
Extension, InvocationInterceptor, TestInstantiationAwareExtension

public class ExpectedToFailExtension extends Object implements InvocationInterceptor
JUnit 5 InvocationInterceptor backing the ExpectedToFail annotation. Inverts a test's pass/fail outcome with optional exception-type and message-substring filters.

Composes with ForkedJvm in either declaration order via explicit coordination through ExtensionContext.Store and a child-JVM system property — not via brittle reliance on annotation iteration order.

Since:
6.0.0