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).
-
Field Summary
Fields inherited from interface org.junit.platform.launcher.LauncherSessionListener
NOOP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
launcherSessionOpened
(org.junit.platform.launcher.LauncherSession session) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.junit.platform.launcher.LauncherSessionListener
launcherSessionClosed
-
Constructor Details
-
TestResourcesLauncherSessionListener
public TestResourcesLauncherSessionListener()
-
-
Method Details
-
launcherSessionOpened
public void launcherSessionOpened(org.junit.platform.launcher.LauncherSession session) - Specified by:
launcherSessionOpened
in interfaceorg.junit.platform.launcher.LauncherSessionListener
-