public class MethodSupport extends Object
| Constructor and Description |
|---|
MethodSupport() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
methodResultFor(Object instance,
String methodName)
Returns result of given method invocation on provided object.
|
public static Object methodResultFor(Object instance, String methodName)
Following requirements have to be met to extract method results:
instance - object on whichmethodName - name of method to be invokedIllegalArgumentException - if method does not exist or is not public, method returns void or method accepts
any argumentCopyright © 2013–2018 AssertJ. All rights reserved.