com.googlecode.gwt.test.Mock Maven / Gradle / Ivy
package com.googlecode.gwt.test;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
*
* Indicates that the annotated field should be initialized as a mock instance of the field type.
*
*
*
* The class declaring such a field must extend {@link GwtTestWithEasyMock} in order to make the
* mock injection possible.
*
*
*
* Mock objects initialized using this annotation will be replayed, verified and reseted when
* calling the corresponding methods of {@link GwtTestWithEasyMock} .
*
*
* @author Bertrand Paquet
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface Mock {
/**
* Specifies th unique identifier of the mock
*
* @return The unique identifier of the mock
*/
String value() default "";
}