|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.unitils.mock.core.proxy.ProxyInvocation
public class ProxyInvocation
An invocation of a proxy method.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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 null| Method Detail |
|---|
public Object invokeOriginalBehavior()
throws Throwable
Throwablepublic int getNrOfNotNullArguments()
public String getMockName()
public Object getProxy()
public Method getMethod()
public List<Object> getArguments()
public List<Object> getArgumentsAtInvocationTime()
public StackTraceElement[] getInvokedAtTrace()
public StackTraceElement getInvokedAt()
public int getLineNumber()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||