DiagnosticUtilitiesUnitTest¶
-
public class
DiagnosticUtilitiesUnitTest
¶ The
DiagnoisticUtilitiesUnitTest
is MANUAL unit test ofDiagnoisticUtilities
.Author: Twinsen Tsang
Methods¶
testDumpAllThread¶
-
public void
testDumpAllThread
()¶ It is not an automated test-case. Just for manual diagnostic method.
testDumpAllThreadWithIllegalStackTraceDepth¶
-
public void
testDumpAllThreadWithIllegalStackTraceDepth
()¶ Test whether operation dumpAllThread throws IllegalArgumentException when stack trace depth is less than zero.
testDumpAllThreadWithNullStream¶
-
public void
testDumpAllThreadWithNullStream
()¶ Test whether operation dumpAllThread throws NullPointerException when output stream is null.
testGetInstance¶
-
public void
testGetInstance
()¶ Test whether the singleton instance is instantiated successfully through
DiagnosticUtilities.getInstance()