Class IgnoreChecks

java.lang.Object
rs.baselib.test.IgnoreChecks

public class IgnoreChecks
extends java.lang.Object
Provides check methods for the IgnoreTest annotation.
Author:
ralph
  • Constructor Summary

    Constructors 
    Constructor Description
    IgnoreChecks()  
  • Method Summary

    Modifier and Type Method Description
    static boolean ignoreTest​(java.lang.reflect.AnnotatedElement element, java.lang.String... testTypes)
    Returns true when the element has been annotated to be ignored for any of the mentioned test types.
    static boolean ignoreTest​(IgnoreTest ignoreTest, java.lang.String... testTypes)
    Returns true when the given annotation contains the any of the given test types.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • ignoreTest

      public static boolean ignoreTest​(java.lang.reflect.AnnotatedElement element, java.lang.String... testTypes)
      Returns true when the element has been annotated to be ignored for any of the mentioned test types.
      Parameters:
      element - the element to be checked
      testTypes - the type of tests that shall be ignored (any must match). If null then the method will check if all tests are allowed.
      Returns:
      true when the element shall be ignored for given test types.
    • ignoreTest

      public static boolean ignoreTest​(IgnoreTest ignoreTest, java.lang.String... testTypes)
      Returns true when the given annotation contains the any of the given test types.
      Parameters:
      ignoreTest - the annotation
      testTypes - test types that shall be checked. If null then the annotation will be checked if it ignores all tests.
      Returns:
      true if the annotation defines ignoring the given tests