@API(value=Experimental) public class MethodSource extends Object implements TestSource
TestSource
.
This class stores the method name along with its parameter types because
Method
does not implement Serializable
.
MethodSelector
,
Serialized FormConstructor and Description |
---|
MethodSource(Method method)
Create a new
MethodSource using the supplied
method . |
MethodSource(String className,
String methodName)
Create a new
MethodSource using the supplied
class and method name. |
MethodSource(String className,
String methodName,
String methodParameterTypes)
Create a new
MethodSource using the supplied
class and method name. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getClassName()
Get the declaring
Class name of this source. |
String |
getMethodName()
Get the
Method name of this source. |
String |
getMethodParameterTypes()
Get the
Method parameter types of this source. |
int |
hashCode() |
String |
toString() |
public MethodSource(String className, String methodName)
MethodSource
using the supplied
class and method name.public MethodSource(String className, String methodName, String methodParameterTypes)
MethodSource
using the supplied
class and method name.