| de.susebox.TestExceptions
TestExceptions | public class TestExceptions extends TestCase (Code) | |
This class is a generic test for implementations of the
ThrowableList interface. Instead of testing each implementation by its own, the common
pattern of all these exceptions is used to define tests on all of them.
See Also: ThrowableList author: Heiko Blau |
Field Summary | |
final public static String[] | EXCEPTIONS_TO_TEST The class paths of the exceptions that are tested with this unit test. |
Method Summary | |
public static void | main(String[] args) Call this method to run this test class. | protected void | setUp() Sets up the fixture, for example, open a network connection. | public static Test | suite() Implementation of the JUnit method suite . | protected void | tearDown() Tears down the fixture, for example, close a network connection. | public void | testMessageFormatting() | public void | testNestedExceptions() Test nested exceptions. | public void | testWrappedException() Test wrapped exceptions. |
EXCEPTIONS_TO_TEST | final public static String[] EXCEPTIONS_TO_TEST(Code) | | The class paths of the exceptions that are tested with this unit test.
|
main | public static void main(String[] args)(Code) | | Call this method to run this test class.
|
setUp | protected void setUp() throws Exception(Code) | | Sets up the fixture, for example, open a network connection.
This method is called before a test is executed.
throws: Exception - for anything that might go wrong |
suite | public static Test suite()(Code) | | Implementation of the JUnit method suite . For each of the
de.susebox.java.lang.ThrowableList implementatios one set of test
cases is added to the suite.
a test suite |
tearDown | protected void tearDown() throws Exception(Code) | | Tears down the fixture, for example, close a network connection.
This method is called after a test is executed.
throws: Exception - for anything that might go wrong |
testMessageFormatting | public void testMessageFormatting() throws Throwable(Code) | | Test the message formatting
|
testNestedExceptions | public void testNestedExceptions() throws Throwable(Code) | | Test nested exceptions.
|
testWrappedException | public void testWrappedException() throws Throwable(Code) | | Test wrapped exceptions. The wrapping exception is only a thin layer around
the real one.
throws: Throwable - for anything that might go wrong |
|
|