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

Quick Search    Search Deep

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

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

public class NestableErrorTestCase
extends AbstractNestableTestCase

Tests the org.apache.commons.lang.exception.NestableError class.

Version:
$Id: NestableErrorTestCase.java 161244 2005-04-14 06:16:36Z ggregory $

Field Summary
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
NestableErrorTestCase(java.lang.String name)
          Construct a new instance of NestableErrorTestCase.
 
Method Summary
 java.lang.Class getBaseThrowableClass()
          Returns the base class being used, typically Error, Eception or RuntimeException.
 Nestable getNestable()
          Returns an instance of the Nestable implementation being tested.
 Nestable getNestable(Nestable n)
          Returns an instance of the Nestable implementation being tested.
 Nestable getNestable(java.lang.String msg)
          Returns an instance of the Nestable implementation being tested.
 Nestable getNestable(java.lang.String msg, Nestable n)
          Returns an instance of the Nestable implementation being tested.
 Nestable getNestable(java.lang.String msg, java.lang.Throwable t)
          Returns an instance of the Nestable implementation being tested.
 Nestable getNestable(java.lang.Throwable t)
          Returns an instance of the Nestable implementation being tested.
 Nestable getTester1(Nestable n)
          Returns an instance of one tester Nestable implementation.
 Nestable getTester1(java.lang.String msg, Nestable n)
          Returns an instance of one tester Nestable implementation.
 Nestable getTester1(java.lang.String msg, java.lang.Throwable t)
          Returns an instance of one tester Nestable implementation.
 Nestable getTester1(java.lang.Throwable t)
          Returns an instance of one tester Nestable implementation.
 java.lang.Class getTester1Class()
          Returns the class of the first tester Nestable implementation.
 Nestable getTester2(java.lang.String msg, Nestable n)
          Returns an instance of a second tester Nestable implementation.
 Nestable getTester2(java.lang.String msg, java.lang.Throwable t)
          Returns an instance of a second tester Nestable implementation.
 java.lang.Class getTester2Class()
          Returns the class of the second tester Nestable implementation.
 java.lang.Throwable getThrowable(java.lang.String msg)
          Returns an instance of a Throwable to be used in constructing instances of the Nestable implementation being tested.
 java.lang.Class getThrowableClass()
          Returns the class of the Throwable used in constructing instances of the Nestable implementation being tested.
static void main(java.lang.String[] args)
          Command line entry point for running the test suite.
 void setUp()
          Sets up instance variables required by this test case.
static junit.framework.Test suite()
          Returns the test suite
 void tearDown()
          Tears down instance variables required by this test case.
 
Methods inherited from class org.apache.commons.lang.exception.AbstractNestableTestCase
testGetCause, testGetMessage, testGetMessageI, testGetMessages, testGetThrowableCount, testGetThrowableI, testGetThrowables, testIndexOfThrowable, testIndexOfThrowableI, testPrintPartialStackTrace, testPrintStackTrace
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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
 

Constructor Detail

NestableErrorTestCase

public NestableErrorTestCase(java.lang.String name)
Construct a new instance of NestableErrorTestCase.

Method Detail

setUp

public void setUp()
Sets up instance variables required by this test case.


suite

public static junit.framework.Test suite()
Returns the test suite


tearDown

public void tearDown()
Tears down instance variables required by this test case.


main

public static void main(java.lang.String[] args)
Command line entry point for running the test suite.


getNestable

public Nestable getNestable()
Description copied from class: AbstractNestableTestCase
Returns an instance of the Nestable implementation being tested.

Specified by:
getNestable in class AbstractNestableTestCase

getNestable

public Nestable getNestable(Nestable n)
Description copied from class: AbstractNestableTestCase
Returns an instance of the Nestable implementation being tested.

Specified by:
getNestable in class AbstractNestableTestCase

getNestable

public Nestable getNestable(java.lang.String msg)
Description copied from class: AbstractNestableTestCase
Returns an instance of the Nestable implementation being tested.

Specified by:
getNestable in class AbstractNestableTestCase

getNestable

public Nestable getNestable(java.lang.Throwable t)
Description copied from class: AbstractNestableTestCase
Returns an instance of the Nestable implementation being tested.

Specified by:
getNestable in class AbstractNestableTestCase

getNestable

public Nestable getNestable(java.lang.String msg,
                            java.lang.Throwable t)
Description copied from class: AbstractNestableTestCase
Returns an instance of the Nestable implementation being tested.

Specified by:
getNestable in class AbstractNestableTestCase

getNestable

public Nestable getNestable(java.lang.String msg,
                            Nestable n)
Description copied from class: AbstractNestableTestCase
Returns an instance of the Nestable implementation being tested.

Specified by:
getNestable in class AbstractNestableTestCase

getTester1

public Nestable getTester1(java.lang.Throwable t)
Description copied from class: AbstractNestableTestCase
Returns an instance of one tester Nestable implementation.

Specified by:
getTester1 in class AbstractNestableTestCase

getTester1

public Nestable getTester1(Nestable n)
Description copied from class: AbstractNestableTestCase
Returns an instance of one tester Nestable implementation.

Specified by:
getTester1 in class AbstractNestableTestCase

getTester1

public Nestable getTester1(java.lang.String msg,
                           java.lang.Throwable t)
Description copied from class: AbstractNestableTestCase
Returns an instance of one tester Nestable implementation.

Specified by:
getTester1 in class AbstractNestableTestCase

getTester1

public Nestable getTester1(java.lang.String msg,
                           Nestable n)
Description copied from class: AbstractNestableTestCase
Returns an instance of one tester Nestable implementation.

Specified by:
getTester1 in class AbstractNestableTestCase

getTester1Class

public java.lang.Class getTester1Class()
Description copied from class: AbstractNestableTestCase
Returns the class of the first tester Nestable implementation.

Specified by:
getTester1Class in class AbstractNestableTestCase

getTester2

public Nestable getTester2(java.lang.String msg,
                           java.lang.Throwable t)
Description copied from class: AbstractNestableTestCase
Returns an instance of a second tester Nestable implementation.

Specified by:
getTester2 in class AbstractNestableTestCase

getTester2

public Nestable getTester2(java.lang.String msg,
                           Nestable n)
Description copied from class: AbstractNestableTestCase
Returns an instance of a second tester Nestable implementation.

Specified by:
getTester2 in class AbstractNestableTestCase

getTester2Class

public java.lang.Class getTester2Class()
Description copied from class: AbstractNestableTestCase
Returns the class of the second tester Nestable implementation.

Specified by:
getTester2Class in class AbstractNestableTestCase

getThrowable

public java.lang.Throwable getThrowable(java.lang.String msg)
Description copied from class: AbstractNestableTestCase
Returns an instance of a Throwable to be used in constructing instances of the Nestable implementation being tested.

Specified by:
getThrowable in class AbstractNestableTestCase

getThrowableClass

public java.lang.Class getThrowableClass()
Description copied from class: AbstractNestableTestCase
Returns the class of the Throwable used in constructing instances of the Nestable implementation being tested.

Specified by:
getThrowableClass in class AbstractNestableTestCase

getBaseThrowableClass

public java.lang.Class getBaseThrowableClass()
Description copied from class: AbstractNestableTestCase
Returns the base class being used, typically Error, Eception or RuntimeException.

Specified by:
getBaseThrowableClass in class AbstractNestableTestCase