Mock (EasyMock 3.2 API)
Date: 2013-07-11

org.easymock

## Annotation Type Mock

-     @Target(value={FIELD,ANNOTATION_TYPE})
      @Retention(value=RUNTIME)
      @Documented
      public @interface Mock

  Annotation to set on a field so that `EasyMockRunner` or `EasyMockSupport.injectMocks(Object)` will inject a mock to it.

  Doing
  `@Mock private MyClass mock;`
  is strictly identical to doing
  `private MyClass mock = createMock(MyClass.class);`

  Since:
    3.2
  Author:
    Henri Tremblay

- - ### Optional Element Summary

    Optional Elements
    Modifier and Type | Optional Element and Description
    --- | ---
    `String` | `name` Name of the mock to be created
    `MockType` | `type` Type of mock to create

- - ### Element Detail

    - #### type

          public abstract MockType type

      Type of mock to create
      Default:
        org.easymock.MockType.DEFAULT

    - #### name

          public abstract String name

      Name of the mock to be created
      Default:
        ""

Copyright © 2001-2013 OFFIS, Tammo Freese, Henri Tremblay. All Rights Reserved.