public class ThreadLeakCheckRule
extends org.junit.rules.ExternalResource
| Modifier and Type | Class and Description |
|---|---|
protected static class |
ThreadLeakCheckRule.DumbReference |
| Constructor and Description |
|---|
ThreadLeakCheckRule() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addKownThread(String name) |
protected void |
after()
Override to tear down your specific external resource.
|
protected void |
before()
Override to set up your specific external resource.
|
void |
disable() |
static void |
forceGC() |
static void |
removeKownThread(String name) |
public void disable()
protected void before()
throws Throwable
before in class org.junit.rules.ExternalResourceThrowable - if setup fails (which will disable after)protected void after()
after in class org.junit.rules.ExternalResourcepublic static void forceGC()
public static void removeKownThread(String name)
public static void addKownThread(String name)
Copyright © 2023 The Apache Software Foundation. All Rights Reserved.