|
|||||||||
| Home >> All >> org >> apache >> commons >> lang >> [ exception overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.commons.lang.exception
Class AbstractNestableTestCase

java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.commons.lang.exception.AbstractNestableTestCase
- All Implemented Interfaces:
- junit.framework.Test
- Direct Known Subclasses:
- NestableErrorTestCase, NestableExceptionTestCase, NestableRuntimeExceptionTestCase
- public abstract class AbstractNestableTestCase
- extends junit.framework.TestCase
Tests implementations of the org.apache.commons.lang.exception.Nestable interface.
- Version:
- $Id: AbstractNestableTestCase.java 161244 2005-04-14 06:16:36Z ggregory $
| Field Summary |
| Fields inherited from class junit.framework.TestCase |
|
| Constructor Summary | |
AbstractNestableTestCase(java.lang.String name)
Constructs an instance of AbstractNestableTestCase. |
|
| Method Summary | |
private void |
doNestableExceptionGetThrowableI(Nestable n,
java.lang.Class[] classes,
java.lang.String[] msgs)
|
private void |
doNestableExceptionGetThrowables(Nestable n,
java.lang.Class[] classes,
java.lang.String[] msgs)
|
private void |
doNestableExceptionIndexOfThrowable(Nestable n,
java.lang.Class type,
int expectedIndex,
java.lang.String expectedMsg)
|
private void |
doNestableExceptionIndexOfThrowableI(Nestable n,
java.lang.Class type,
int fromIndex,
int expectedIndex,
java.lang.String expectedMsg)
|
abstract java.lang.Class |
getBaseThrowableClass()
Returns the base class being used, typically Error, Eception or RuntimeException. |
abstract Nestable |
getNestable()
Returns an instance of the Nestable implementation being
tested. |
abstract Nestable |
getNestable(Nestable n)
Returns an instance of the Nestable implementation being
tested. |
abstract Nestable |
getNestable(java.lang.String msg)
Returns an instance of the Nestable implementation being
tested. |
abstract Nestable |
getNestable(java.lang.String msg,
Nestable n)
Returns an instance of the Nestable implementation being
tested. |
abstract Nestable |
getNestable(java.lang.String msg,
java.lang.Throwable t)
Returns an instance of the Nestable implementation being
tested. |
abstract Nestable |
getNestable(java.lang.Throwable t)
Returns an instance of the Nestable implementation being
tested. |
abstract Nestable |
getTester1(Nestable n)
Returns an instance of one tester Nestable implementation. |
abstract Nestable |
getTester1(java.lang.String msg,
Nestable n)
Returns an instance of one tester Nestable implementation. |
abstract Nestable |
getTester1(java.lang.String msg,
java.lang.Throwable t)
Returns an instance of one tester Nestable implementation. |
abstract Nestable |
getTester1(java.lang.Throwable t)
Returns an instance of one tester Nestable implementation. |
abstract java.lang.Class |
getTester1Class()
Returns the class of the first tester Nestable
implementation. |
abstract Nestable |
getTester2(java.lang.String msg,
Nestable n)
Returns an instance of a second tester Nestable
implementation. |
abstract Nestable |
getTester2(java.lang.String msg,
java.lang.Throwable t)
Returns an instance of a second tester Nestable
implementation. |
abstract java.lang.Class |
getTester2Class()
Returns the class of the second tester Nestable
implementation. |
abstract 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. |
abstract java.lang.Class |
getThrowableClass()
Returns the class of the Throwable used in constructing
instances of the Nestable implementation being tested. |
void |
testGetCause()
Tests the getCause() operation. |
void |
testGetMessage()
Tests the getMessage() operation. |
void |
testGetMessageI()
Tests the getMessage(int) operation. |
void |
testGetMessages()
Tests the getMessages() operation. |
void |
testGetThrowableCount()
Tests the getThrowableCount() operation. |
void |
testGetThrowableI()
Tests the getThrowable(int) operation. |
void |
testGetThrowables()
Tests the getThrowables() operation. |
void |
testIndexOfThrowable()
Tests the indexOfThrowable() operation. |
void |
testIndexOfThrowableI()
Tests the indexOfThrowable(int) operation. |
void |
testPrintPartialStackTrace()
Tests the printPartialStackTrace() operation. |
void |
testPrintStackTrace()
Tests the printStackTrace() operation. |
| Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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 |
| Constructor Detail |
AbstractNestableTestCase
public AbstractNestableTestCase(java.lang.String name)
- Constructs an instance of
AbstractNestableTestCase.
| Method Detail |
testGetCause
public void testGetCause()
- Tests the getCause() operation.
testGetThrowableCount
public void testGetThrowableCount()
- Tests the getThrowableCount() operation.
testGetMessage
public void testGetMessage()
- Tests the getMessage() operation.
testGetMessageI
public void testGetMessageI()
- Tests the getMessage(int) operation.
testGetMessages
public void testGetMessages()
- Tests the getMessages() operation.
testGetThrowableI
public void testGetThrowableI()
- Tests the getThrowable(int) operation.
doNestableExceptionGetThrowableI
private void doNestableExceptionGetThrowableI(Nestable n, java.lang.Class[] classes, java.lang.String[] msgs)
testGetThrowables
public void testGetThrowables()
- Tests the getThrowables() operation.
doNestableExceptionGetThrowables
private void doNestableExceptionGetThrowables(Nestable n, java.lang.Class[] classes, java.lang.String[] msgs)
testIndexOfThrowable
public void testIndexOfThrowable()
- Tests the indexOfThrowable() operation.
doNestableExceptionIndexOfThrowable
private void doNestableExceptionIndexOfThrowable(Nestable n, java.lang.Class type, int expectedIndex, java.lang.String expectedMsg)
testIndexOfThrowableI
public void testIndexOfThrowableI()
- Tests the indexOfThrowable(int) operation.
doNestableExceptionIndexOfThrowableI
private void doNestableExceptionIndexOfThrowableI(Nestable n, java.lang.Class type, int fromIndex, int expectedIndex, java.lang.String expectedMsg)
testPrintPartialStackTrace
public void testPrintPartialStackTrace()
- Tests the printPartialStackTrace() operation.
testPrintStackTrace
public void testPrintStackTrace()
- Tests the printStackTrace() operation.
getNestable
public abstract Nestable getNestable()
- Returns an instance of the
Nestableimplementation being tested.
getNestable
public abstract Nestable getNestable(Nestable n)
- Returns an instance of the
Nestableimplementation being tested.
getNestable
public abstract Nestable getNestable(java.lang.String msg)
- Returns an instance of the
Nestableimplementation being tested.
getNestable
public abstract Nestable getNestable(java.lang.String msg, Nestable n)
- Returns an instance of the
Nestableimplementation being tested.
getNestable
public abstract Nestable getNestable(java.lang.String msg, java.lang.Throwable t)
- Returns an instance of the
Nestableimplementation being tested.
getNestable
public abstract Nestable getNestable(java.lang.Throwable t)
- Returns an instance of the
Nestableimplementation being tested.
getThrowable
public abstract java.lang.Throwable getThrowable(java.lang.String msg)
- Returns an instance of a
Throwableto be used in constructing instances of theNestableimplementation being tested.
getTester1
public abstract Nestable getTester1(Nestable n)
- Returns an instance of one tester
Nestableimplementation.
getTester1
public abstract Nestable getTester1(java.lang.Throwable t)
- Returns an instance of one tester
Nestableimplementation.
getTester1
public abstract Nestable getTester1(java.lang.String msg, Nestable n)
- Returns an instance of one tester
Nestableimplementation.
getTester1
public abstract Nestable getTester1(java.lang.String msg, java.lang.Throwable t)
- Returns an instance of one tester
Nestableimplementation.
getTester2
public abstract Nestable getTester2(java.lang.String msg, Nestable n)
- Returns an instance of a second tester
Nestableimplementation.
getTester2
public abstract Nestable getTester2(java.lang.String msg, java.lang.Throwable t)
- Returns an instance of a second tester
Nestableimplementation.
getTester1Class
public abstract java.lang.Class getTester1Class()
- Returns the class of the first tester
Nestableimplementation.
getTester2Class
public abstract java.lang.Class getTester2Class()
- Returns the class of the second tester
Nestableimplementation.
getThrowableClass
public abstract java.lang.Class getThrowableClass()
- Returns the class of the
Throwableused in constructing instances of theNestableimplementation being tested.
getBaseThrowableClass
public abstract java.lang.Class getBaseThrowableClass()
- Returns the base class being used, typically Error, Eception or RuntimeException.
|
|||||||||
| Home >> All >> org >> apache >> commons >> lang >> [ exception overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC