package org.needle4j.annotation;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import org.needle4j.mock.MockProvider;
/**
* Allows shorthand mock creation with the configured {@link MockProvider}
*
* <pre>
* Example:
*
* public void Test {
*
* @Rule
* public NeedleRule needle = new NeedleRule();
*
* @Mock
* private Queue queue;
*
* @Test
* public void test(){
* ...
* }
* }
* </pre>
*/
@Target({ FIELD })
@Retention(RUNTIME)
public @interface Mock {
}