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
FieldsModifier and TypeFieldDescriptionprivate static Stringprivate final PrintWriterprivate static final Stringprivate static final DateTimeFormatter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static Stringstatic Stringprivate static Stringprivate static voidprintLockInfo(LockInfo[] locks, PrintWriter out) private static voidprintThread(ThreadInfo ti, PrintWriter out) private static voidprintThreadInfo(ThreadInfo ti, PrintWriter out) voidtestFailure(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:
-
TIMESTAMP_FORMATTER
-
INDENT
-
output
-
-
Constructor Details
-
TimedOutTestsListener
public TimedOutTestsListener() -
TimedOutTestsListener
-
-
Method Details
-
testFailure
- Overrides:
testFailurein classorg.junit.runner.notification.RunListener- Throws:
Exception
-
buildThreadDiagnosticString
-
buildThreadDump
-
buildDeadlockInfo
-
printThreadInfo
-
printThread
-
printLockInfo
-