|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.mockrunner.util.common.MethodUtil
| Constructor Summary | |
MethodUtil()
|
|
| Method Summary | |
static java.lang.Object |
invoke(java.lang.Object object,
java.lang.String methodName)
Invokes the method with the specified name on the specified object and throws a NestedApplicationException,
if the invocation fails. |
static java.lang.Object |
invoke(java.lang.Object object,
java.lang.String methodName,
java.lang.Object parameter)
Invokes the method with the specified name on the specified object and throws a NestedApplicationException,
if the invocation fails. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MethodUtil()
| Method Detail |
public static java.lang.Object invoke(java.lang.Object object,
java.lang.String methodName)
NestedApplicationException,
if the invocation fails. The method must be public and must not
have any parameters.
object - the object the method is invoked frommethodName - the name of the method
public static java.lang.Object invoke(java.lang.Object object,
java.lang.String methodName,
java.lang.Object parameter)
NestedApplicationException,
if the invocation fails. The method must be public and must have
exactly one paremeter of the type specified by the given
parameter.
object - the object the method is invoked frommethodName - the name of the methodparameter - the parameter, must not be null
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||