ConstructorArgs (EasyMock 3.0 API)
Date: 2010-05-08

Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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
`ConstructorArgs(Constructor<?> constructor, Object... initArgs)`

Method Summary
`Constructor<?>` | `getConstructor()`
`Object[]` | `getInitArgs()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ConstructorArgs

    public ConstructorArgs(Constructor<?> constructor,
                           Object... initArgs)

Parameters:
  `constructor` - Constructor to be called when creating the mock
  `initArgs` - 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

Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2010 OFFIS, Tammo Freese, Henri Tremblay. This documentation is provided under the terms of the Apache 2 licence.