Class GroupEvaluator


  • public final class GroupEvaluator
    extends java.lang.Object
    Evaluates enabled/ disabled state for a given test group.
    • Method Detail

      • hasFilteringExpression

        boolean hasFilteringExpression()
      • getIgnoreReason

        public java.lang.String getIgnoreReason​(java.lang.reflect.AnnotatedElement... elements)
        Returns:
        Returns a non-null string with the reason why the annotated element (class, test or test-class pair) should be ignored in the execution. This is an expert-level method, typically tests shouldn't be concerned with this.
      • toString

        private java.lang.String toString​(java.lang.annotation.Annotation ann)
      • isGroupEnabled

        public boolean isGroupEnabled​(java.lang.Class<? extends java.lang.annotation.Annotation> testGroupAnnotation)
        Returns:
        Returns the current state of the an annotation marked with TestGroup. Note that tests may be enabled or disabled using filtering expressions so an enabled group does not necessarily mean a test marked with this group will be executed.