Package io.netty.util.test
Class LeakPresenceExtension.ScopeWrapper
- java.lang.Object
-
- io.netty.util.test.LeakPresenceExtension.ScopeWrapper
-
- Enclosing class:
- LeakPresenceExtension
private static final class LeakPresenceExtension.ScopeWrapper extends java.lang.ObjectPrevent junit from closing the ResourceScope automatically.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.Class<?>ownerThe test class that originally created the shared scope.(package private) LeakPresenceDetector.ResourceScopescope
-
Constructor Summary
Constructors Constructor Description ScopeWrapper(LeakPresenceDetector.ResourceScope scope, java.lang.Class<?> owner)
-
-
-
Field Detail
-
scope
final LeakPresenceDetector.ResourceScope 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 Detail
-
ScopeWrapper
ScopeWrapper(LeakPresenceDetector.ResourceScope scope, java.lang.Class<?> owner)
-
-