void |
testNoMailJar()
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ThreadDeathLoggingTest
public ThreadDeathLoggingTest()
testNoMailJar
This test can be used to check if an Error or RuntimeException actually
logged, but it requires manual running. For example remove mail.jar from
the classpath, and check the error log if it contains logged NoClassDef
exception. See also the comment within the function how to check for a
NPE. Note that any exception that causes a thread death is printed on
stderr by the default uncaughtExceptionHandler of the JRE, but this is
not what you are looking for.
- Throws:
SMTPException
IOException
Copyright © 2006-2011. All Rights Reserved.
|