Package rs.baselib.test
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 booleanignoreTest(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 booleanignoreTest(IgnoreTest ignoreTest, java.lang.String... testTypes)Returns true when the given annotation contains the any of the given test types.
-
Constructor Details
-
IgnoreChecks
public IgnoreChecks()
-
-
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 checkedtestTypes- 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
Returns true when the given annotation contains the any of the given test types.- Parameters:
ignoreTest- the annotationtestTypes- 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
-