Package io.micronaut.http.tck.netty
Class TestLeakDetector
java.lang.Object
io.micronaut.http.tck.netty.TestLeakDetector
Utility for testing for netty buffer leaks.
- Since:
- 4.8.19
- Author:
- Jonas Konrad
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
init()
Initialize the leak detector.static void
startTracking
(String testName) Start tracking leaks.static void
Stop tracking leaks.
-
Method Details
-
init
public static void init()Initialize the leak detector. -
startTracking
Start tracking leaks.- Parameters:
testName
- The current test name
-
stopTrackingAndReportLeaks
public static void stopTrackingAndReportLeaks()Stop tracking leaks.- Throws:
RuntimeException
- If there was a leak since the laststartTracking(String)
-