1 | |
package org.jbehave.core.annotations; |
2 | |
|
3 | |
import static org.jbehave.core.annotations.AfterScenario.Outcome.ANY; |
4 | |
|
5 | |
import java.lang.annotation.ElementType; |
6 | |
import java.lang.annotation.Retention; |
7 | |
import java.lang.annotation.RetentionPolicy; |
8 | |
import java.lang.annotation.Target; |
9 | |
|
10 | |
@Retention(RetentionPolicy.RUNTIME) |
11 | |
@Target(ElementType.METHOD) |
12 | |
public @interface AfterScenario { |
13 | |
|
14 | 6 | enum Outcome { ANY, SUCCESS, FAILURE } |
15 | |
|
16 | |
|
17 | |
|
18 | |
|
19 | |
|
20 | |
|
21 | |
Outcome uponOutcome() default ANY; |
22 | |
|
23 | |
} |