Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.commons.lang.exception
Class ExceptionUtilsTestCase  view ExceptionUtilsTestCase download ExceptionUtilsTestCase.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.apache.commons.lang.exception.ExceptionUtilsTestCase
All Implemented Interfaces:
junit.framework.Test

public class ExceptionUtilsTestCase
extends junit.framework.TestCase

Tests ExceptionUtils.

Since:
1.0

Nested Class Summary
private static class ExceptionUtilsTestCase.ExceptionWithCause
          Provides a method with a well known chained/nested exception name which matches the full signature (e.g.
private static class ExceptionUtilsTestCase.ExceptionWithoutCause
          Provides a method with a well known chained/nested exception name which does not match the full signature (e.g.
 
Field Summary
private  NestableException nested
           
private  java.lang.Throwable withCause
           
private  java.lang.Throwable withoutCause
           
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
ExceptionUtilsTestCase(java.lang.String name)
           
 
Method Summary
private  java.lang.Throwable createExceptionWithCause()
           
private  java.lang.Throwable createExceptionWithoutCause()
           
 void setUp()
          Sets up the fixture, for example, open a network connection.
static junit.framework.Test suite()
           
 void testCauseMethodNameOps()
           
(package private)  void testCauseMethodNameOps(java.lang.String name)
           
 void testGetCause_Throwable()
           
 void testGetCause_ThrowableArray()
           
 void testGetRootCause_Throwable()
           
 void testGetRootCauseStackTrace_Throwable()
           
 void testGetThrowableCount_Throwable()
           
 void testGetThrowables_Throwable()
           
 void testIndexOf_ThrowableClass()
           
 void testIndexOf_ThrowableClassInt()
           
 void testIndexOfType_ThrowableClass()
           
 void testIndexOfType_ThrowableClassInt()
           
 void testIsNestedThrowable_Throwable()
           
 void testIsThrowableNested()
           
 void testPrintRootCauseStackTrace_Throwable()
           
 void testPrintRootCauseStackTrace_ThrowableStream()
           
 void testPrintRootCauseStackTrace_ThrowableWriter()
           
 void testRemoveCommonFrames_ListList()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

nested

private NestableException nested

withCause

private java.lang.Throwable withCause

withoutCause

private java.lang.Throwable withoutCause
Constructor Detail

ExceptionUtilsTestCase

public ExceptionUtilsTestCase(java.lang.String name)
Method Detail

suite

public static junit.framework.Test suite()

setUp

public void setUp()
Description copied from class: junit.framework.TestCase
Sets up the fixture, for example, open a network connection. This method is called before a test is executed.


createExceptionWithoutCause

private java.lang.Throwable createExceptionWithoutCause()

createExceptionWithCause

private java.lang.Throwable createExceptionWithCause()

testCauseMethodNameOps

public void testCauseMethodNameOps()

testCauseMethodNameOps

void testCauseMethodNameOps(java.lang.String name)

testGetCause_Throwable

public void testGetCause_Throwable()

testGetCause_ThrowableArray

public void testGetCause_ThrowableArray()

testGetRootCause_Throwable

public void testGetRootCause_Throwable()

testIsThrowableNested

public void testIsThrowableNested()

testIsNestedThrowable_Throwable

public void testIsNestedThrowable_Throwable()

testGetThrowableCount_Throwable

public void testGetThrowableCount_Throwable()

testGetThrowables_Throwable

public void testGetThrowables_Throwable()

testIndexOf_ThrowableClass

public void testIndexOf_ThrowableClass()

testIndexOf_ThrowableClassInt

public void testIndexOf_ThrowableClassInt()

testIndexOfType_ThrowableClass

public void testIndexOfType_ThrowableClass()

testIndexOfType_ThrowableClassInt

public void testIndexOfType_ThrowableClassInt()

testPrintRootCauseStackTrace_Throwable

public void testPrintRootCauseStackTrace_Throwable()
                                            throws java.lang.Exception

testPrintRootCauseStackTrace_ThrowableStream

public void testPrintRootCauseStackTrace_ThrowableStream()
                                                  throws java.lang.Exception

testPrintRootCauseStackTrace_ThrowableWriter

public void testPrintRootCauseStackTrace_ThrowableWriter()
                                                  throws java.lang.Exception

testGetRootCauseStackTrace_Throwable

public void testGetRootCauseStackTrace_Throwable()
                                          throws java.lang.Exception

testRemoveCommonFrames_ListList

public void testRemoveCommonFrames_ListList()
                                     throws java.lang.Exception