Class MethodLookup.Result
- java.lang.Object
-
- com.github.robtimus.junit.support.extension.MethodLookup.Result
-
- Enclosing class:
- MethodLookup
public static final class MethodLookup.Result extends Object
The result of finding a method. Besides the method itself, this class also knows which parameter type combination was used to find the method, and supports invoking the method.- Author:
- Rob Spoor
- Since:
- 2.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
index()
Returns the index of the parameter type combination that was used to find the method.Method
method()
Returns the method that was found.
-
-
-
Method Detail
-
method
public Method method()
Returns the method that was found.- Returns:
- The method that was found.
-
index
public int index()
Returns the index of the parameter type combination that was used to find the method.- Returns:
- The index of the parameter type combination that was used to find the method.
-
-