test.jmock.builder
Class InvocationMockerBuilderTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.jmock.core.VerifyingTestCase
              extended byorg.jmock.core.MockObjectSupportTestCase
                  extended bytest.jmock.builder.InvocationMockerBuilderTest
All Implemented Interfaces:
Test

public class InvocationMockerBuilderTest
extends MockObjectSupportTestCase


Nested Class Summary
static interface InvocationMockerBuilderTest.MockedInterface
           
 
Field Summary
 
Fields inherited from class org.jmock.core.MockObjectSupportTestCase
ANYTHING, NOT_NULL, NULL
 
Constructor Summary
InvocationMockerBuilderTest()
           
 
Method Summary
 void setUp()
           
 void testAnyParamsAddsAnyArgumentMatcher()
           
 void testCanAddCustomMatcher()
           
 void testCanSetCustomStub()
           
 void testIsVoidSetsVoidStub()
           
 void testMethodNameNotInMockedTypeCausesTestFailure()
           
 void testNoParamsAddsNoArgumentMatcher()
           
 void testSpecifyingMethodNameNameAddsMethodNameMatcherAndAddsSelfToIdentityTable()
           
 void testSpecifyingMethodWithConstraintAddsMethodNameMatcherButDoesNotAddSelfToIdentityTable()
           
 void testSpecifyingMethodWithIllegalNameThrowsIllegalArgumentError()
           
 void testUniquelyIdentifyInvocationMockerAndRegisterItselfInBuilderIdentityTable()
           
 void testWithMethodAddsArgumentsMatcher()
           
 void testWithMethodWithOneObjectArgumentAddsArgumentsMatcher()
           
 void testWithMethodWithTwoObjectArgumentsAddsArgumentsMatcher()
           
 
Methods inherited from class org.jmock.core.MockObjectSupportTestCase
and, eq, eq, eq, eq, eq, eq, eq, eq, eq, eq, isA, newDummy, newDummy, newDummy, not, or, same, stringContains
 
Methods inherited from class org.jmock.core.VerifyingTestCase
registerToVerify, runBare, unregisterToVerify, verify
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, 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

InvocationMockerBuilderTest

public InvocationMockerBuilderTest()
Method Detail

setUp

public void setUp()

testSpecifyingMethodNameNameAddsMethodNameMatcherAndAddsSelfToIdentityTable

public void testSpecifyingMethodNameNameAddsMethodNameMatcherAndAddsSelfToIdentityTable()

testSpecifyingMethodWithIllegalNameThrowsIllegalArgumentError

public void testSpecifyingMethodWithIllegalNameThrowsIllegalArgumentError()

testMethodNameNotInMockedTypeCausesTestFailure

public void testMethodNameNotInMockedTypeCausesTestFailure()

testSpecifyingMethodWithConstraintAddsMethodNameMatcherButDoesNotAddSelfToIdentityTable

public void testSpecifyingMethodWithConstraintAddsMethodNameMatcherButDoesNotAddSelfToIdentityTable()

testCanAddCustomMatcher

public void testCanAddCustomMatcher()

testWithMethodAddsArgumentsMatcher

public void testWithMethodAddsArgumentsMatcher()

testWithMethodWithOneObjectArgumentAddsArgumentsMatcher

public void testWithMethodWithOneObjectArgumentAddsArgumentsMatcher()

testWithMethodWithTwoObjectArgumentsAddsArgumentsMatcher

public void testWithMethodWithTwoObjectArgumentsAddsArgumentsMatcher()

testNoParamsAddsNoArgumentMatcher

public void testNoParamsAddsNoArgumentMatcher()

testAnyParamsAddsAnyArgumentMatcher

public void testAnyParamsAddsAnyArgumentMatcher()

testCanSetCustomStub

public void testCanSetCustomStub()

testIsVoidSetsVoidStub

public void testIsVoidSetsVoidStub()

testUniquelyIdentifyInvocationMockerAndRegisterItselfInBuilderIdentityTable

public void testUniquelyIdentifyInvocationMockerAndRegisterItselfInBuilderIdentityTable()