public class ProxyInvocation extends Object
| Constructor and Description |
|---|
ProxyInvocation(ProxyInvocation proxyInvocation)
Creates a copy of the given proxy invocation.
|
ProxyInvocation(String mockName,
Object proxy,
Method method,
List<Object> arguments,
StackTraceElement[] invokedAtTrace)
Creates an invocation.
|
| Modifier and Type | Method and Description |
|---|---|
List<Object> |
getArguments() |
List<Object> |
getArgumentsAtInvocationTime()
The arguments at the time that they were used.
|
StackTraceElement |
getInvokedAt() |
StackTraceElement[] |
getInvokedAtTrace() |
int |
getLineNumber() |
Method |
getMethod() |
String |
getMockName() |
int |
getNrOfNotNullArguments() |
Object |
getProxy() |
Object |
invokeOriginalBehavior()
Calls the actual method that was proxied using the same arguments.
|
public ProxyInvocation(String mockName, Object proxy, Method method, List<Object> arguments, StackTraceElement[] invokedAtTrace)
mockName - The name of the mock, e.g. the field name, not nullproxy - The proxy on which the method was called, not nullmethod - The method that was called, not nullarguments - The arguments that were used, not nullinvokedAtTrace - The trace of the invocation, not nullpublic ProxyInvocation(ProxyInvocation proxyInvocation)
proxyInvocation - The proxy invocation to copy, not nullpublic Object invokeOriginalBehavior() throws Throwable
Throwablepublic int getNrOfNotNullArguments()
public String getMockName()
public Object getProxy()
public Method getMethod()
public List<Object> getArgumentsAtInvocationTime()
public StackTraceElement[] getInvokedAtTrace()
public StackTraceElement getInvokedAt()
public int getLineNumber()
Copyright © 2016. All Rights Reserved.