Package org.easymock
Class ConstructorArgs
- java.lang.Object
-
- org.easymock.ConstructorArgs
-
public class ConstructorArgs extends Object
Class wrapping arguments to create a partial class mock that gets instantiated by calling one of its constructors.- Author:
- Henri Tremblay
-
-
Constructor Summary
Constructors Constructor Description ConstructorArgs(Constructor<?> constructor, Object... initArgs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Constructor<?>
getConstructor()
Object[]
getInitArgs()
-
-
-
Constructor Detail
-
ConstructorArgs
public ConstructorArgs(Constructor<?> constructor, Object... initArgs)
- Parameters:
constructor
- Constructor to be called when creating the mockinitArgs
- Arguments passed to the constructor
-
-
Method Detail
-
getInitArgs
public Object[] getInitArgs()
- Returns:
- arguments to be passed to the constructor
-
getConstructor
public Constructor<?> getConstructor()
- Returns:
- constructor to be called
-
-