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