Class LeakPresenceExtension.ScopeWrapper

java.lang.Object
io.netty.util.test.LeakPresenceExtension.ScopeWrapper
Enclosing class:
LeakPresenceExtension

private static final class LeakPresenceExtension.ScopeWrapper extends java.lang.Object
Prevent junit from closing the ResourceScope automatically.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) final java.lang.Class<?>
    The test class that originally created the shared scope.
    (package private) final LeakPresenceDetector.ResourceScope
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ScopeWrapper(LeakPresenceDetector.ResourceScope scope, java.lang.Class<?> owner)
     
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • scope

    • owner

      final java.lang.Class<?> owner
      The test class that originally created the shared scope. Nested classes reuse the same scope but must not close it in afterAll; only this owner may do the final close and remove the scope from the store.
  • Constructor Details