|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbiz.xsoftware.mock.CalledMethod
public final class CalledMethod
This object contains information about a MockObject method when it is called
| Constructor Summary | |
|---|---|
CalledMethod(String methodName,
Method method,
Object[] params,
Throwable howItWasCalled)
|
|
CalledMethod(String methodName,
Object[] params,
Throwable howItWasCalled)
|
|
| Method Summary | |
|---|---|
Object[] |
getAllParams()
Gets all the parameters that were passed into the method. |
Throwable |
getHowItWasCalled()
Returns a stacktrace of how the method was called. |
Method |
getMethod()
Gets the method object this CalledMethod object represents |
String |
getMethodName()
Gets the method name this CalledMethod object represents |
Object |
getParameter(int index)
Gets the parameter at location=index |
int |
getParameterCount()
Gets the number of parameters passed into method |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CalledMethod(String methodName,
Object[] params,
Throwable howItWasCalled)
public CalledMethod(String methodName,
Method method,
Object[] params,
Throwable howItWasCalled)
| Method Detail |
|---|
public String getMethodName()
public Method getMethod()
public int getParameterCount()
public Object getParameter(int index)
index - The location of the parameter
public Object[] getAllParams()
Note: The array returned is a clone of the internal array so changes to the returned array will not change the internal array
public Throwable getHowItWasCalled()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||