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