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:
parent
90b54cc01b
commit
e0800963cc
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue