Package com.azure.core.test
Class ThreadDumper
java.lang.Object
com.azure.core.test.ThreadDumper
- All Implemented Interfaces:
org.junit.jupiter.api.extension.BeforeAllCallback,org.junit.jupiter.api.extension.Extension
public class ThreadDumper
extends Object
implements org.junit.jupiter.api.extension.BeforeAllCallback
A utility and extension to dump threads after 30 minutes from starting tests.
It can be used as standalone utility via
initialize() as well as hooked up with JUnit
by implementing BeforeAllCallback.beforeAll(ExtensionContext).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbeforeAll(org.junit.jupiter.api.extension.ExtensionContext context) static voidInitializes the singleton dumper.
-
Constructor Details
-
ThreadDumper
public ThreadDumper()
-
-
Method Details
-
initialize
public static void initialize()Initializes the singleton dumper. Can be called multiple times safely. -
beforeAll
- Specified by:
beforeAllin interfaceorg.junit.jupiter.api.extension.BeforeAllCallback- Throws:
Exception
-