##### Coverage Report - org.jbehave.core.annotations.AfterScenario

Classes in this File | Line Coverage | Branch Coverage | Complexity
AfterScenario |
N/A | N/A
N/A | N/A
| 0.0;0
AfterScenario$Outcome |
100% | 1/1
N/A | N/A
| 0.0;0

1 |  |
     package org.jbehave.core.annotations;
2 |  |
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 |  |
9 |  |
     import static org.jbehave.core.annotations.AfterScenario.Outcome.ANY;
10 |  |
11 |  |
     @Retention(RetentionPolicy.RUNTIME)
12 |  |
     @Target(ElementType.METHOD)
13 |  |
     @Documented
14 |  |
     public @interface AfterScenario {
15 |  |
16 | 6 |
             enum Outcome { ANY, SUCCESS, FAILURE }
17 |  |
18 |  |
             /**
19 |  |
              * Signals that the annotated method should be invoked only upon given outcome
20 |  |
              *
21 |  |
              * @return An Outcome upon which the method should be invoked
22 |  |
              */
23 |  |
             Outcome uponOutcome() default ANY;
24 |  |
25 |  |
         /**
26 |  |
          * Signals that the annoated method should be invoked only upon given type
27 |  |
          *
28 |  |
          * @return A ScenarioType upon which the method should be invoked
29 |  |
          */
30 |  |
         ScenarioType uponType() default ScenarioType.NORMAL;
31 |  |
32 |  |
     }