org.gjt.rec.testing
Class RuntimeExceptionTestCase

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--org.gjt.rec.testing.RuntimeExceptionTestCase
All Implemented Interfaces:
junit.framework.Test

public abstract class RuntimeExceptionTestCase
extends junit.framework.TestCase

This is a JUnit TestCase, much like ExceptionTestCase, but this one will catch runtime exceptions as well as checked exceptions.

Author:
Neil Stockbridge

Field Summary
static String REVISION
           
 
Constructor Summary
protected RuntimeExceptionTestCase(String name, Class exceptionClass)
           
 
Method Summary
protected  void runTest()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, 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
 

Field Detail

REVISION

public static final String REVISION
See Also:
Constant Field Values
Constructor Detail

RuntimeExceptionTestCase

protected RuntimeExceptionTestCase(String name,
                                   Class exceptionClass)
Method Detail

runTest

protected void runTest()
                throws Throwable
Overrides:
runTest in class junit.framework.TestCase
Throwable