Class ThreadLeakListener

java.lang.Object
org.apache.kafka.test.ThreadLeakListener
All Implemented Interfaces:
org.junit.platform.launcher.TestExecutionListener

public class ThreadLeakListener extends Object implements org.junit.platform.launcher.TestExecutionListener
ThreadLeakListener is a TestExecutionListener that checks for thread leaks after test execution. It verifies that no unexpected threads are left running and reports any leaks found. Thread dump reports are generated and stored in each project's "build/thread-reports" directory.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    executionFinished(org.junit.platform.launcher.TestIdentifier testIdentifier, org.junit.platform.engine.TestExecutionResult testExecutionResult)
     
    void
    executionSkipped(org.junit.platform.launcher.TestIdentifier testIdentifier, String reason)
     

    Methods inherited from class Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.junit.platform.launcher.TestExecutionListener

    dynamicTestRegistered, executionStarted, fileEntryPublished, reportingEntryPublished, testPlanExecutionFinished, testPlanExecutionStarted
  • Constructor Details

    • ThreadLeakListener

      public ThreadLeakListener()
  • Method Details

    • executionFinished

      public void executionFinished(org.junit.platform.launcher.TestIdentifier testIdentifier, org.junit.platform.engine.TestExecutionResult testExecutionResult)
      Specified by:
      executionFinished in interface org.junit.platform.launcher.TestExecutionListener
    • executionSkipped

      public void executionSkipped(org.junit.platform.launcher.TestIdentifier testIdentifier, String reason)
      Specified by:
      executionSkipped in interface org.junit.platform.launcher.TestExecutionListener