Class TestLeakDetector

java.lang.Object
io.micronaut.http.tck.netty.TestLeakDetector

public final class TestLeakDetector extends Object
Utility for testing for netty buffer leaks.
Since:
4.8.19
Author:
Jonas Konrad
  • Method Details

    • init

      public static void init()
      Initialize the leak detector.
    • startTracking

      public static void startTracking(String testName)
      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 last startTracking(String)