|
||||||||||
| 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 abstract class ProxyInvocation
An invocation of a proxy method.
| Constructor Summary | |
|---|---|
ProxyInvocation(ProxyInvocation proxyInvocation)
Creates a copy of the given proxy invocation. |
|
ProxyInvocation(java.lang.String mockName,
java.lang.Object proxy,
java.lang.reflect.Method method,
java.util.List<java.lang.Object> arguments,
java.lang.StackTraceElement[] invokedAtTrace)
Creates an invocation. |
|
| Method Summary | |
|---|---|
java.util.List<java.lang.Object> |
getArguments()
|
java.util.List<java.lang.Object> |
getArgumentsAtInvocationTime()
The arguments at the time that they were used. |
java.lang.StackTraceElement |
getInvokedAt()
|
java.lang.StackTraceElement[] |
getInvokedAtTrace()
|
int |
getLineNumber()
|
java.lang.reflect.Method |
getMethod()
|
java.lang.String |
getMockName()
|
int |
getNrOfNotNullArguments()
|
java.lang.Object |
getProxy()
|
java.lang.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(java.lang.String mockName,
java.lang.Object proxy,
java.lang.reflect.Method method,
java.util.List<java.lang.Object> arguments,
java.lang.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 java.lang.Object invokeOriginalBehavior()
throws java.lang.Throwable
java.lang.Throwablepublic int getNrOfNotNullArguments()
public java.lang.String getMockName()
public java.lang.Object getProxy()
public java.lang.reflect.Method getMethod()
public java.util.List<java.lang.Object> getArguments()
public java.util.List<java.lang.Object> getArgumentsAtInvocationTime()
public java.lang.StackTraceElement[] getInvokedAtTrace()
public java.lang.StackTraceElement getInvokedAt()
public int getLineNumber()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||