IMockMethod
public class DynamicMockMethod extends java.lang.Object implements IMockMethod
Constructor | Description |
---|---|
DynamicMockMethod(java.lang.String methodName,
int argumentCount,
boolean isStatic) |
|
DynamicMockMethod(java.lang.String methodName,
java.util.List<java.lang.Class<?>> parameterTypes,
java.lang.Class<?> returnType,
boolean isStatic) |
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getName() |
Returns the name of the method.
|
java.util.List<java.lang.Class<?>> |
getParameterTypes() |
Returns the parameter types of the method.
|
java.lang.Class<?> |
getReturnType() |
Returns the return type of the method.
|
boolean |
isStatic() |
Tells whether the method is static or an instance method.
|
public DynamicMockMethod(java.lang.String methodName, int argumentCount, boolean isStatic)
public DynamicMockMethod(java.lang.String methodName, java.util.List<java.lang.Class<?>> parameterTypes, java.lang.Class<?> returnType, boolean isStatic)
public java.lang.String getName()
IMockMethod
getName
in interface IMockMethod
public java.util.List<java.lang.Class<?>> getParameterTypes()
IMockMethod
Object
.getParameterTypes
in interface IMockMethod
public java.lang.Class<?> getReturnType()
IMockMethod
Object
.getReturnType
in interface IMockMethod
public boolean isStatic()
IMockMethod
isStatic
in interface IMockMethod
Copyright © 2018. All rights reserved