Package rs.baselib.test
Class IgnoreChecks
java.lang.Object
rs.baselib.test.IgnoreChecks
Provides check methods for the
IgnoreTest
annotation.- Author:
- ralph
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
ignoreTest
(AnnotatedElement element, 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, String... testTypes) Returns true when the given annotation contains the any of the given test types.
-
Constructor Details
-
IgnoreChecks
public IgnoreChecks()
-
-
Method Details
-
ignoreTest
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
-