public class ThreadRule extends Object implements org.junit.rules.TestRule
| Modifier and Type | Class and Description |
|---|---|
static class |
ThreadRule.DefaultThreadMatcher
Default implementation that ignore several known threads.
|
static interface |
ThreadRule.ThreadMatcher |
| Modifier and Type | Field and Description |
|---|---|
static String |
STACK_TRACE_ELEMENT_SEPARATOR |
| Constructor and Description |
|---|
ThreadRule() |
ThreadRule(ThreadRule.ThreadMatcher ignoredThreadMatcher) |
| Modifier and Type | Method and Description |
|---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description) |
Collection<? extends Thread> |
getInitialThreads() |
Set<? extends Thread> |
getRemainingThreads() |
public static final String STACK_TRACE_ELEMENT_SEPARATOR
public ThreadRule()
public ThreadRule(@Nullable ThreadRule.ThreadMatcher ignoredThreadMatcher)
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
apply in interface org.junit.rules.TestRule@Nonnull public Collection<? extends Thread> getInitialThreads()
Copyright © 2007–2016 cedarsoft GmbH. All rights reserved.