ToContext.java

  1. package org.jbehave.core.annotations;

  2. import static org.jbehave.core.annotations.ToContext.RetentionLevel.EXAMPLE;

  3. import java.lang.annotation.Documented;
  4. import java.lang.annotation.ElementType;
  5. import java.lang.annotation.Retention;
  6. import java.lang.annotation.RetentionPolicy;
  7. import java.lang.annotation.Target;

  8. @Retention(RetentionPolicy.RUNTIME)
  9. @Target(ElementType.METHOD)
  10. @Documented
  11. public @interface ToContext {

  12.     enum RetentionLevel {
  13.         STORY, SCENARIO, EXAMPLE
  14.     }

  15.     String value();

  16.     RetentionLevel retentionLevel() default EXAMPLE;
  17. }