All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.googlecode.gwt.test.Mock Maven / Gradle / Ivy

There is a newer version: 0.63
Show newest version
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 ""; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy