org.unitils.mock.core.matching
Class MatchingInvocationBuilder

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

public class MatchingInvocationBuilder
extends java.lang.Object

Author:
Filip Neven, Tim Ducheyne

Nested Class Summary
protected  class MatchingInvocationBuilder.InvocationHandler
           
 
Field Summary
protected  java.lang.String currentMockName
           
protected  java.lang.String definingMethodName
           
protected  java.lang.StackTraceElement[] invokedAt
           
protected  MatchingInvocationHandler matchingInvocationHandler
           
 
Constructor Summary
MatchingInvocationBuilder()
           
 
Method Summary
 void assertNotExpectingInvocation()
           
protected  java.util.List<ArgumentMatcher> createArgumentMatchers(ProxyInvocation proxyInvocation)
           
protected  java.lang.Object handleProxyInvocation(ProxyInvocation proxyInvocation, MatchingInvocationHandler matchingInvocationHandler)
           
protected  boolean isChainedMock()
           
 void reset()
           
<T> T
startMatchingInvocation(java.lang.String mockName, java.lang.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 java.lang.String currentMockName

definingMethodName

protected java.lang.String definingMethodName

invokedAt

protected java.lang.StackTraceElement[] invokedAt

matchingInvocationHandler

protected MatchingInvocationHandler matchingInvocationHandler
Constructor Detail

MatchingInvocationBuilder

public MatchingInvocationBuilder()
Method Detail

startMatchingInvocation

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

reset

public void reset()

assertNotExpectingInvocation

public void assertNotExpectingInvocation()

isChainedMock

protected boolean isChainedMock()

handleProxyInvocation

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

createArgumentMatchers

protected java.util.List<ArgumentMatcher> createArgumentMatchers(ProxyInvocation proxyInvocation)


Copyright © 2011. All Rights Reserved.