@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
String name
String fieldName
Copyright © 2001–2018 EasyMock contributors. All rights reserved.