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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    executionStarted(org.junit.platform.launcher.TestIdentifier testIdentifier)
     

    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.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:
      executionStarted in interface org.junit.platform.launcher.TestExecutionListener