test.jmock.core.testsupport
Class MockDynamicMock

java.lang.Object
  extended bytest.jmock.core.testsupport.MockVerifiable
      extended bytest.jmock.core.testsupport.MockDynamicMock
All Implemented Interfaces:
DynamicMock, Verifiable

public class MockDynamicMock
extends MockVerifiable
implements DynamicMock


Field Summary
 ExpectationValue addInvokable
           
 ExpectationCounter addInvokableCalls
           
 ExpectationCounter getMockedTypeCalls
           
 Class getMockedTypeResult
           
 Object proxyResult
           
 ExpectationCounter resetCalls
           
 ExpectationValue setDefaultStub
           
 String toStringResult
           
 
Fields inherited from class test.jmock.core.testsupport.MockVerifiable
verifyCalls, verifyFailure
 
Constructor Summary
MockDynamicMock()
           
 
Method Summary
 void addInvokable(Invokable invokable)
           
 Class getMockedType()
           
 Object invoke(Object arg0, Method arg1, Object[] arg2)
           
 Object proxy()
           
 void reset()
           
 void setDefaultStub(Stub newDefaultStub)
           
 String toString()
           
 
Methods inherited from class test.jmock.core.testsupport.MockVerifiable
setExpectedVerifyCalls, verify, verifyExpectations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jmock.core.Verifiable
verify
 

Field Detail

getMockedTypeCalls

public ExpectationCounter getMockedTypeCalls

getMockedTypeResult

public Class getMockedTypeResult

addInvokableCalls

public ExpectationCounter addInvokableCalls

addInvokable

public ExpectationValue addInvokable

setDefaultStub

public ExpectationValue setDefaultStub

proxyResult

public Object proxyResult

resetCalls

public ExpectationCounter resetCalls

toStringResult

public String toStringResult
Constructor Detail

MockDynamicMock

public MockDynamicMock()
Method Detail

getMockedType

public Class getMockedType()
Specified by:
getMockedType in interface DynamicMock

addInvokable

public void addInvokable(Invokable invokable)
Specified by:
addInvokable in interface DynamicMock

setDefaultStub

public void setDefaultStub(Stub newDefaultStub)
Specified by:
setDefaultStub in interface DynamicMock

proxy

public Object proxy()
Specified by:
proxy in interface DynamicMock

reset

public void reset()
Specified by:
reset in interface DynamicMock

invoke

public Object invoke(Object arg0,
                     Method arg1,
                     Object[] arg2)
              throws Throwable
Throws:
Throwable

toString

public String toString()