Interface BeforeEachMethodAdapter

All Superinterfaces:
org.junit.jupiter.api.extension.Extension
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.0")
public interface BeforeEachMethodAdapter
extends org.junit.jupiter.api.extension.Extension
Functional interface for registering a @BeforeEach method as a pseudo-extension.
Since:
5.0
  • Method Summary

    Modifier and Type Method Description
    void invokeBeforeEachMethod​(org.junit.jupiter.api.extension.ExtensionContext context, ExtensionRegistry registry)  
  • Method Details

    • invokeBeforeEachMethod

      void invokeBeforeEachMethod​(org.junit.jupiter.api.extension.ExtensionContext context, ExtensionRegistry registry) throws java.lang.Throwable
      Throws:
      java.lang.Throwable