Coverage Report - org.jbehave.core.configuration.AnnotationRequired
 
Classes in this File Line Coverage Branch Coverage Complexity
AnnotationRequired
100%
2/2
N/A
1
 
 1  
 package org.jbehave.core.configuration;
 2  
 
 3  
 import java.lang.annotation.Annotation;
 4  
 
 5  
 @SuppressWarnings("serial")
 6  
 /**
 7  
  * Thrown when an annotation is required and not found.
 8  
  */
 9  
 public class AnnotationRequired extends RuntimeException {
 10  
 
 11  
         /**
 12  
          * Used when an annotation is required and not found
 13  
          * 
 14  
          * @param annotatedClass the annotated Class 
 15  
          * @param missingAnnotation the missing Annotation class
 16  
          */
 17  
         public AnnotationRequired(Class<?> annotatedClass,
 18  
                         Class<? extends Annotation> missingAnnotation) {
 19  1
                 super(annotatedClass + " requires to be annotated by " + missingAnnotation + ".");
 20  1
         }
 21  
 
 22  
 }