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 voidinit()Initialize the leak detector.static voidstartTracking(String testName) Start tracking leaks.static voidStop 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)
-