org.subethamail.smtp.test
Class ThreadDeathLoggingTest

java.lang.Object
  extended by org.subethamail.smtp.test.ThreadDeathLoggingTest

public class ThreadDeathLoggingTest
extends Object


Constructor Summary
ThreadDeathLoggingTest()
           
 
Method Summary
 void testNoMailJar()
          
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadDeathLoggingTest

public ThreadDeathLoggingTest()
Method Detail

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.