@Target(value={FIELD,ANNOTATION_TYPE})
@Retention(value=RUNTIME)
@Documented
public @interface Mock
EasyMockRunner, EasyMockRule 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);
public abstract MockType type
public abstract java.lang.String fieldName
Copyright © 2001-2019 EasyMock contributors. This documentation is provided under the terms of the Apache 2 licence.