Package org.apache.flink.core.testutils
Interface CustomExtension
-
- All Known Implementing Classes:
TestContainerExtension
public interface CustomExtension
An extension that is invoked before/after all/each tests, depending on whether it is wrapped in aEachCallbackWrapper
orAllCallbackWrapper
.before
method will be called inbeforeEach
orbeforeAll
.after
will be called inafterEach
orafterAll
.Usage example:
{@code public class Test{ CustomExtension eachCustom = new CustomExtensionImpl1(); CustomExtension allCustom = new CustomExtensionImpl2();
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
after(org.junit.jupiter.api.extension.ExtensionContext context)
default void
before(org.junit.jupiter.api.extension.ExtensionContext context)
-