Class TestResourcesLauncherSessionListener

java.lang.Object
io.micronaut.test.extensions.junit5.TestResourcesLauncherSessionListener
All Implemented Interfaces:
org.junit.platform.launcher.LauncherSessionListener

public class TestResourcesLauncherSessionListener extends Object implements org.junit.platform.launcher.LauncherSessionListener
In a single JVM, tests can be executed in different sessions (e.g when test distribution is active). This listener makes sure that all sessions share the same scope listener, so that scopes are not closed whenever a single session is done (because a resource can be used in different sessions at the same time).
  • Constructor Details

    • TestResourcesLauncherSessionListener

      public TestResourcesLauncherSessionListener()
  • Method Details

    • launcherSessionOpened

      public void launcherSessionOpened(org.junit.platform.launcher.LauncherSession session)
      Specified by:
      launcherSessionOpened in interface org.junit.platform.launcher.LauncherSessionListener