Package org.spockframework.mock.runtime
Class DynamicMockMethod
java.lang.Object
org.spockframework.mock.runtime.DynamicMockMethod
- All Implemented Interfaces:
IMockMethod
-
Constructor Summary
ConstructorsConstructorDescriptionDynamicMockMethod(String methodName, int argumentCount, boolean isStatic) DynamicMockMethod(String methodName, List<Class<?>> parameterTypes, Class<?> returnType, boolean isStatic) -
Method Summary
-
Constructor Details
-
DynamicMockMethod
-
DynamicMockMethod
-
-
Method Details
-
getName
Description copied from interface:IMockMethodReturns the name of the method.- Specified by:
getNamein interfaceIMockMethod- Returns:
- the name of the method
-
getParameterTypes
Description copied from interface:IMockMethodReturns the parameter types of the method. In cases where no static type information is available, all arguments are assumed to have typeObject.- Specified by:
getParameterTypesin interfaceIMockMethod- Returns:
- the parameter types of the method
-
getReturnType
Description copied from interface:IMockMethodReturns the return type of the method. In cases where no static type information is available, the return type is assumed to beObject.- Specified by:
getReturnTypein interfaceIMockMethod- Returns:
- the return type of the method
-
isStatic
public boolean isStatic()Description copied from interface:IMockMethodTells whether the method is static or an instance method.- Specified by:
isStaticin interfaceIMockMethod- Returns:
- whether the method is static or an instance method
-