org.unitils.mock.core.matching
Class MatchingInvocationBuilder

java.lang.Object
  extended by org.unitils.mock.core.matching.MatchingInvocationBuilder

public class MatchingInvocationBuilder
extends Object

Author:
Filip Neven, Tim Ducheyne

Nested Class Summary
protected  class MatchingInvocationBuilder.InvocationHandler
           
 
Field Summary
protected  String currentMockName
           
protected  String definingMethodName
           
protected  StackTraceElement[] invokedAt
           
protected  MatchingInvocationHandler matchingInvocationHandler
           
 
Constructor Summary
MatchingInvocationBuilder()
           
 
Method Summary
 void assertNotExpectingInvocation()
           
protected  List<ArgumentMatcher> createArgumentMatchers(ProxyInvocation proxyInvocation)
           
protected  Object handleProxyInvocation(ProxyInvocation proxyInvocation, MatchingInvocationHandler matchingInvocationHandler)
           
protected  boolean isChainedMock()
           
 void reset()
           
<T> T
startMatchingInvocation(String mockName, Class<T> mockedType, MatchingInvocationHandler matchingInvocationHandler)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentMockName

protected String currentMockName

definingMethodName

protected String definingMethodName

invokedAt

protected StackTraceElement[] invokedAt

matchingInvocationHandler

protected MatchingInvocationHandler matchingInvocationHandler
Constructor Detail

MatchingInvocationBuilder

public MatchingInvocationBuilder()
Method Detail

startMatchingInvocation

public <T> T startMatchingInvocation(String mockName,
                                     Class<T> mockedType,
                                     MatchingInvocationHandler matchingInvocationHandler)

reset

public void reset()

assertNotExpectingInvocation

public void assertNotExpectingInvocation()

isChainedMock

protected boolean isChainedMock()

handleProxyInvocation

protected Object handleProxyInvocation(ProxyInvocation proxyInvocation,
                                       MatchingInvocationHandler matchingInvocationHandler)
                                throws Throwable
Throws:
Throwable

createArgumentMatchers

protected List<ArgumentMatcher> createArgumentMatchers(ProxyInvocation proxyInvocation)


Copyright © 2011. All Rights Reserved.