Class EachCallbackWrapper<C extends CustomExtension>

java.lang.Object
org.apache.flink.core.testutils.EachCallbackWrapper<C>
All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterEachCallback, org.junit.jupiter.api.extension.BeforeEachCallback, org.junit.jupiter.api.extension.Extension

public class EachCallbackWrapper<C extends CustomExtension> extends Object implements org.junit.jupiter.api.extension.BeforeEachCallback, org.junit.jupiter.api.extension.AfterEachCallback
An extension wrap logic for BeforeEachCallback and AfterEachCallback.
  • Constructor Details

    • EachCallbackWrapper

      public EachCallbackWrapper(C customExtension)
  • Method Details

    • getCustomExtension

      public C getCustomExtension()
    • afterEach

      public void afterEach(org.junit.jupiter.api.extension.ExtensionContext context) throws Exception
      Specified by:
      afterEach in interface org.junit.jupiter.api.extension.AfterEachCallback
      Throws:
      Exception
    • beforeEach

      public void beforeEach(org.junit.jupiter.api.extension.ExtensionContext context) throws Exception
      Specified by:
      beforeEach in interface org.junit.jupiter.api.extension.BeforeEachCallback
      Throws:
      Exception