Coverage Report - org.jbehave.core.annotations.AfterScenario
 
Classes in this File Line Coverage Branch Coverage Complexity
AfterScenario
N/A
N/A
0
AfterScenario$Outcome
100%
1/1
N/A
0
 
 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  
          * Signals that the annotated method should be invoked only upon given outcome
 18  
          * 
 19  
          * @return An Outcome upon which the method should be invoked 
 20  
          */
 21  
         Outcome uponOutcome() default ANY;
 22  
 
 23  
 }