Class IgnoreChecks

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

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

    • IgnoreChecks

      public IgnoreChecks()
  • Method Details

    • ignoreTest

      public static boolean ignoreTest(AnnotatedElement element, 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, 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