Package org.apache.hadoop.hbase
Class TimedOutTestsListener
java.lang.Object
org.junit.runner.notification.RunListener
org.apache.hadoop.hbase.TimedOutTestsListener
JUnit run listener which prints full thread dump into System.err in case a test is failed due to
timeout.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.junit.runner.notification.RunListener
org.junit.runner.notification.RunListener.ThreadSafe
-
Field Summary
Modifier and TypeFieldDescriptionprivate static String
private final PrintWriter
(package private) static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) static String
static String
(package private) static String
private static void
printLockInfo
(LockInfo[] locks, PrintWriter out) private static void
printThread
(ThreadInfo ti, PrintWriter out) private static void
printThreadInfo
(ThreadInfo ti, PrintWriter out) void
testFailure
(org.junit.runner.notification.Failure failure) Methods inherited from class org.junit.runner.notification.RunListener
testAssumptionFailure, testFinished, testIgnored, testRunFinished, testRunStarted, testStarted, testSuiteFinished, testSuiteStarted
-
Field Details
-
TEST_TIMED_OUT_PREFIX
- See Also:
-
INDENT
-
output
-
-
Constructor Details
-
TimedOutTestsListener
public TimedOutTestsListener() -
TimedOutTestsListener
-
-
Method Details
-
testFailure
- Overrides:
testFailure
in classorg.junit.runner.notification.RunListener
- Throws:
Exception
-
buildThreadDiagnosticString
-
buildThreadDump
-
buildDeadlockInfo
-
printThreadInfo
-
printThread
-
printLockInfo
-