Package com.vaadin.flow.testutil
Class CurrentInstanceCleanerListener
java.lang.Object
com.vaadin.flow.testutil.CurrentInstanceCleanerListener
- All Implemented Interfaces:
org.junit.platform.launcher.TestExecutionListener
public class CurrentInstanceCleanerListener
extends Object
implements org.junit.platform.launcher.TestExecutionListener
JUnit Platform equivalent of
CurrentInstanceCleaner. Removes any
CurrentInstance thread locals before running a test, preventing state leakage
between tests.
Registered automatically via ServiceLoader in
META-INF/services/org.junit.platform.launcher.TestExecutionListener.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecutionStarted(org.junit.platform.launcher.TestIdentifier testIdentifier) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.junit.platform.launcher.TestExecutionListener
dynamicTestRegistered, executionFinished, executionSkipped, fileEntryPublished, reportingEntryPublished, testPlanExecutionFinished, testPlanExecutionStarted
-
Constructor Details
-
CurrentInstanceCleanerListener
public CurrentInstanceCleanerListener()
-
-
Method Details
-
executionStarted
public void executionStarted(org.junit.platform.launcher.TestIdentifier testIdentifier) - Specified by:
executionStartedin interfaceorg.junit.platform.launcher.TestExecutionListener
-