Package org.easymock
Class ConstructorArgs
java.lang.Object
org.easymock.ConstructorArgs
Class wrapping arguments to create a partial class mock that gets
instantiated by calling one of its constructors.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConstructor
<?> Object[]
private IllegalArgumentException
throwException
(Class<?> paramType, Object arg) private void
-
Field Details
-
constructor
-
initArgs
-
-
Constructor Details
-
ConstructorArgs
- Parameters:
constructor
- Constructor to be called when creating the mockinitArgs
- Arguments passed to the constructor
-
-
Method Details
-
validateArgs
private void validateArgs() -
throwException
-
getInitArgs
- Returns:
- arguments to be passed to the constructor
-
getConstructor
- Returns:
- constructor to be called
-