com.tngtech.jgiven.annotation.ProvidedScenarioState Maven / Gradle / Ivy
package com.tngtech.jgiven.annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import com.tngtech.jgiven.annotation.ScenarioState.Resolution;
/**
* Marks fields to be provided by a scenario stage.
* The annotation behaves exactly like {@link ScenarioState},
* but better indicates the usage of a field.
*/
@Documented
@Retention( RetentionPolicy.RUNTIME )
@Target( ElementType.FIELD )
public @interface ProvidedScenarioState {
Resolution resolution() default Resolution.AUTO;
}