Top Description Fields Constructors Methods
org.easymock

public Class ConstructorArgs

extends Object
Class Inheritance
Imports
java.lang.reflect.Constructor, .Field

Class wrapping arguments to create a partial class mock that gets instantiated by calling one of its constructors.
Author
Henri Tremblay

Field Summary

Modifier and TypeField and Description
private final Constructor<?>
private final Object[]

Constructor Summary

AccessConstructor and Description
public
ConstructorArgs(Constructor<?>
Constructor to be called when creating the mock
constructor
,
Object...
Arguments passed to the constructor
initArgs
)

Method Summary

Modifier and TypeMethod and Description
public Constructor<?>

Returns:

constructor to be called
getConstructor
()

public Object[]

Returns:

arguments to be passed to the constructor
getInitArgs
()

private IllegalArgumentException
throwException(Class<?> paramType, Object arg)

private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

constructorback to summary
private final Constructor<?> constructor
initArgsback to summary
private final Object[] initArgs

Constructor Detail

ConstructorArgsback to summary
public ConstructorArgs(Constructor<?> constructor, Object... initArgs)
Parameters
constructor:Constructor<?>

Constructor to be called when creating the mock

initArgs:Object[]

Arguments passed to the constructor

Method Detail

getConstructorback to summary
public Constructor<?> getConstructor()
Returns:Constructor<?>

constructor to be called

getInitArgsback to summary
public Object[] getInitArgs()
Returns:Object[]

arguments to be passed to the constructor

throwExceptionback to summary
private IllegalArgumentException throwException(Class<?> paramType, Object arg)
validateArgsback to summary
private void validateArgs()