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 -
Method Summary
Modifier and TypeMethodDescriptionvoidexecutionFinished(org.junit.platform.launcher.TestIdentifier testIdentifier, org.junit.platform.engine.TestExecutionResult testExecutionResult) voidexecutionSkipped(org.junit.platform.launcher.TestIdentifier testIdentifier, String reason) Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
executionFinishedin interfaceorg.junit.platform.launcher.TestExecutionListener
-
executionSkipped
public void executionSkipped(org.junit.platform.launcher.TestIdentifier testIdentifier, String reason) - Specified by:
executionSkippedin interfaceorg.junit.platform.launcher.TestExecutionListener
-