test.jmock.core.stub
Class ReturnStubTest

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

public class ReturnStubTest
extends TestCase


Constructor Summary
ReturnStubTest()
           
 
Method Summary
 void setUp()
           
 void testCanReturnNullReference()
           
 void testIncludesValueInDescription()
           
 void testReturnsValuePassedToConstructor()
           
 void testThrowsAssertionFailedErrorIfTriesToReturnNullFromMethodWithPrimitiveReturnType()
           
 void testThrowsAssertionFailedErrorIfTriesToReturnValueFromVoidMethod()
           
 void testThrowsAssertionFailedErrorIfTriesToReturnValueOfIncompatibleType()
           
 
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

ReturnStubTest

public ReturnStubTest()
Method Detail

setUp

public void setUp()

testReturnsValuePassedToConstructor

public void testReturnsValuePassedToConstructor()
                                         throws Throwable
Throws:
Throwable

testIncludesValueInDescription

public void testIncludesValueInDescription()

testThrowsAssertionFailedErrorIfTriesToReturnValueOfIncompatibleType

public void testThrowsAssertionFailedErrorIfTriesToReturnValueOfIncompatibleType()
                                                                          throws Throwable
Throws:
Throwable

testThrowsAssertionFailedErrorIfTriesToReturnValueFromVoidMethod

public void testThrowsAssertionFailedErrorIfTriesToReturnValueFromVoidMethod()
                                                                      throws Throwable
Throws:
Throwable

testCanReturnNullReference

public void testCanReturnNullReference()
                                throws Throwable
Throws:
Throwable

testThrowsAssertionFailedErrorIfTriesToReturnNullFromMethodWithPrimitiveReturnType

public void testThrowsAssertionFailedErrorIfTriesToReturnNullFromMethodWithPrimitiveReturnType()
                                                                                        throws Throwable
Throws:
Throwable