test.jmock.core.stub
Class ThrowStubTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bytest.jmock.core.stub.ThrowStubTest
All Implemented Interfaces:
Test

public class ThrowStubTest
extends TestCase


Nested Class Summary
static class ThrowStubTest.ExpectedExceptionType1
           
static class ThrowStubTest.ExpectedExceptionType2
           
 
Constructor Summary
ThrowStubTest()
           
 
Method Summary
 void setUp()
           
 void testDoesNotCheckTypeCompatiblityOfErrors()
           
 void testDoesNotCheckTypeCompatiblityOfUncheckedExceptions()
           
 void testGivesInformativeErrorMessageIfAttemptToThrowCheckedExceptionFromMethodWithNoExceptions()
           
 void testIncludesDetailsOfThrowableInDescription()
           
 void testSetsStackTraceWhenExceptionIsThrown()
           
 void testThrowsAssertionFailedErrorIfTriesToThrowIncompatibleCheckedException()
           
 void testThrowsThrowableObjectPassedToConstructorWhenInvoked()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ThrowStubTest

public ThrowStubTest()
Method Detail

setUp

public void setUp()

testThrowsThrowableObjectPassedToConstructorWhenInvoked

public void testThrowsThrowableObjectPassedToConstructorWhenInvoked()

testIncludesDetailsOfThrowableInDescription

public void testIncludesDetailsOfThrowableInDescription()

testThrowsAssertionFailedErrorIfTriesToThrowIncompatibleCheckedException

public void testThrowsAssertionFailedErrorIfTriesToThrowIncompatibleCheckedException()
                                                                              throws Throwable
Throws:
Throwable

testGivesInformativeErrorMessageIfAttemptToThrowCheckedExceptionFromMethodWithNoExceptions

public void testGivesInformativeErrorMessageIfAttemptToThrowCheckedExceptionFromMethodWithNoExceptions()
                                                                                                throws Throwable
Throws:
Throwable

testDoesNotCheckTypeCompatiblityOfUncheckedExceptions

public void testDoesNotCheckTypeCompatiblityOfUncheckedExceptions()
                                                           throws Throwable
Throws:
Throwable

testDoesNotCheckTypeCompatiblityOfErrors

public void testDoesNotCheckTypeCompatiblityOfErrors()
                                              throws Throwable
Throws:
Throwable

testSetsStackTraceWhenExceptionIsThrown

public void testSetsStackTraceWhenExceptionIsThrown()