Interface ExtensionContextSupplier

  • All Known Implementing Classes:
    ExtensionContextSupplier.ScopeBasedExtensionContextSupplier
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    @API(status=INTERNAL,
         since="5.12")
    public interface ExtensionContextSupplier
    Container of two instances of ExtensionContext to simplify the legacy for #3445.
    Since:
    5.12
    See Also:
    TestInstantiationAwareExtension
    • Method Detail

      • create

        static ExtensionContextSupplier create​(org.junit.jupiter.api.extension.ExtensionContext currentExtensionContext,
                                               org.junit.jupiter.api.extension.ExtensionContext legacyExtensionContext,
                                               JupiterConfiguration configuration)
      • get

        org.junit.jupiter.api.extension.ExtensionContext get​(org.junit.jupiter.api.extension.TestInstantiationAwareExtension extension)