test.jmock.core
Class LIFOInvocationDispatcherTest

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

public class LIFOInvocationDispatcherTest
extends TestCase


Constructor Summary
LIFOInvocationDispatcherTest()
           
 
Method Summary
 void dummyMethod()
           
 void setUp()
           
 void testByDefaultInvokeFailsWhenNoInvokablesMatch()
           
 void testClearRemovesAllInvokables()
           
 void testInvokeFailsWhenEmpty()
           
 void testInvokesDefaultStubWhenNoInvokablesMatch()
           
 void testInvokesInvokableThatMatches()
           
 void testLaterInvokablesOverrideEarlierInvokables()
           
 void testPropagatesExceptionFromInvokable()
           
 void testReturnsValueFromInvokable()
           
 void testSearchesForMatchInLIFOOrder()
           
 void testVerifiesAllInvokables()
           
 
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

LIFOInvocationDispatcherTest

public LIFOInvocationDispatcherTest()
Method Detail

setUp

public void setUp()
           throws NoSuchMethodException
Throws:
NoSuchMethodException

dummyMethod

public void dummyMethod()

testInvokeFailsWhenEmpty

public void testInvokeFailsWhenEmpty()
                              throws Throwable
Throws:
Throwable

testInvokesInvokableThatMatches

public void testInvokesInvokableThatMatches()
                                     throws Throwable
Throws:
Throwable

testReturnsValueFromInvokable

public void testReturnsValueFromInvokable()
                                   throws Throwable
Throws:
Throwable

testPropagatesExceptionFromInvokable

public void testPropagatesExceptionFromInvokable()
                                          throws Throwable
Throws:
Throwable

testByDefaultInvokeFailsWhenNoInvokablesMatch

public void testByDefaultInvokeFailsWhenNoInvokablesMatch()
                                                   throws Throwable
Throws:
Throwable

testLaterInvokablesOverrideEarlierInvokables

public void testLaterInvokablesOverrideEarlierInvokables()
                                                  throws Throwable
Throws:
Throwable

testSearchesForMatchInLIFOOrder

public void testSearchesForMatchInLIFOOrder()
                                     throws Throwable
Throws:
Throwable

testVerifiesAllInvokables

public void testVerifiesAllInvokables()

testClearRemovesAllInvokables

public void testClearRemovesAllInvokables()
                                   throws Throwable
Throws:
Throwable

testInvokesDefaultStubWhenNoInvokablesMatch

public void testInvokesDefaultStubWhenNoInvokablesMatch()
                                                 throws Throwable
Throws:
Throwable