Package com.google.common.testing
Annotation Type FreshValueGenerator.Generates
-
@Target(METHOD) @Retention(RUNTIME) private static @interface FreshValueGenerator.Generates
Annotates a method to be the instance generator of a certain type. The return type is the generated type. The method parameters correspond to the generated type's type parameters. For example, if the annotated method returnsMap<K, V>
, the method signature should be:Map<K, V> generateMap(K key, V value)
.