|
| 1 | +package io.cucumber.java.tl; |
| 2 | + |
| 3 | +import io.cucumber.java.StepDefinitionAnnotation; |
| 4 | +import io.cucumber.java.StepDefinitionAnnotations; |
| 5 | +import org.apiguardian.api.API; |
| 6 | + |
| 7 | +import java.lang.annotation.Documented; |
| 8 | +import java.lang.annotation.ElementType; |
| 9 | +import java.lang.annotation.Repeatable; |
| 10 | +import java.lang.annotation.Retention; |
| 11 | +import java.lang.annotation.RetentionPolicy; |
| 12 | +import java.lang.annotation.Target; |
| 13 | + |
| 14 | +/** |
| 15 | + * To execute steps in a feature file the steps must be connected to executable |
| 16 | + * code. This can be done by annotating a method with a cucumber or regular |
| 17 | + * expression. |
| 18 | + * <p> |
| 19 | + * The parameters extracted from the step by the expression along with the data |
| 20 | + * table or doc string argument are provided as arguments to the method. |
| 21 | + * <p> |
| 22 | + * The types of the parameters are determined by the cucumber or regular |
| 23 | + * expression. |
| 24 | + * <p> |
| 25 | + * The type of the data table or doc string argument is determined by the |
| 26 | + * argument name value. When none is provided cucumber will attempt to transform |
| 27 | + * the data table or doc string to the type of the last argument. |
| 28 | + * |
| 29 | + * @deprecated moved to {@code io.cucumber.java.te} |
| 30 | + */ |
| 31 | +@Retention(RetentionPolicy.RUNTIME) |
| 32 | +@Target(ElementType.METHOD) |
| 33 | +@StepDefinitionAnnotation |
| 34 | +@Documented |
| 35 | +@Repeatable(ఈపరిస్థితిలో.ఈపరిస్థితిలోs.class) |
| 36 | +@API(status = API.Status.STABLE) |
| 37 | +@Deprecated |
| 38 | +public @interface ఈపరిస్థితిలో { |
| 39 | + /** |
| 40 | + * A cucumber or regular expression. |
| 41 | + * |
| 42 | + * @return a cucumber or regular expression |
| 43 | + */ |
| 44 | + String value(); |
| 45 | + |
| 46 | + /** |
| 47 | + * Allows the use of multiple 'ఈపరిస్థితిలో's on a single method. |
| 48 | + */ |
| 49 | + @Target(ElementType.METHOD) |
| 50 | + @Retention(RetentionPolicy.RUNTIME) |
| 51 | + @StepDefinitionAnnotations |
| 52 | + @Documented |
| 53 | + @interface ఈపరిస్థితిలోs { |
| 54 | + ఈపరిస్థితిలో[] value(); |
| 55 | + } |
| 56 | +} |
0 commit comments