testGetThrowableCount(): New method to get

ExceptionUtils.getThrowableCount() with null argument.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136977 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Daniel Rall 2002-08-22 00:00:09 +00:00
parent 90b54cc01b
commit e0800963cc
1 changed files with 5 additions and 0 deletions

View File

@ -101,6 +101,11 @@ public class ExceptionUtilsTestCase extends junit.framework.TestCase
assertTrue(ExceptionUtils.getRootCause(withCause) == withoutCause);
}
public void testGetThrowableCount()
{
assertEquals(ExceptionUtils.getThrowableCount(null), 0);
}
private static class ExceptionWithCause extends Exception
{
private Throwable cause;