| |
|
| org.apache.cactus.ServletTestCase org.apache.cactus.sample.servlet.unit.TestServerSideExceptions
TestServerSideExceptions | public class TestServerSideExceptions extends ServletTestCase (Code) | | Verifies the correct handling of exceptions that happen when running
inside the server. Specifically verifies that serializable,
non-serializable and
AssertionFailedError exceptions are
correctly propagated to the client side.
version: $Id: TestServerSideExceptions.java 238900 2004-04-10 16:11:26Z vmassol $ |
Inner Class :public class NotSerializableException extends Exception | |
runBare | public void runBare() throws Throwable(Code) | | Intercepts running test cases to check for normal exceptions.
exception: Throwable - on test failure |
testAssertionFailedError | public void testAssertionFailedError()(Code) | | Raises an AssertionFailedError exception. The exception is
caught in
TestServletTestCase_InterceptorServletTestCase.runTest() .
This is to verify that AssertionFailedError raised on the
server side are properly propagated on the client side.
|
testComparisonFailure | public void testComparisonFailure()(Code) | | Verify that the new
ComparisonFailure introduced in JUnit 3.8.1
is correctly reported as a failure and not as an error in the Test
Runner when Cactus is used.
|
testExceptionNotSerializable | public void testExceptionNotSerializable() throws NotSerializableException(Code) | | Raises a non serializable exception. The exception is
caught in
TestServletTestCase_InterceptorServletTestCase.runTest() .
This is to verify that non serializable exceptions raised on the
server side are properly propagated on the client side.
exception: NotSerializableException - the non serializable exception tothrow |
testExceptionSerializable | public void testExceptionSerializable() throws SerializableException(Code) | | Raises a serializable exception. The exception is
caught in
TestServletTestCase_InterceptorServletTestCase.runTest() .
This is to verify that serializable exceptions raised on the
server side are properly propagated on the client side.
exception: SerializableException - the serializable exception to throw |
|
|
|