Class ScopeHolder

java.lang.Object
io.micronaut.test.extensions.junit5.ScopeHolder

@Internal public final class ScopeHolder extends Object
Our JUnit listener needs to communicate with the test resources provider factory. Because they are both instantiated with service loading, we are using a thread local to share information.
  • Method Details

    • get

      public static Optional<String> get()
    • set

      public static void set(String scope)
    • remove

      public static void remove()