@Target(value={FIELD,ANNOTATION_TYPE}) @Retention(value=RUNTIME) @Documented public @interface Mock
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);
Copyright © 2010–2014 Henri Tremblay. All rights reserved.