Package org.nuxeo.runtime.test.runner
Interface ConditionalIgnore.Condition
- All Superinterfaces:
ConditionalIgnoreRule.Condition
- All Known Implementing Classes:
ConditionalIgnoreRule.IgnoreWindows,IgnoreIfWindows
- Enclosing class:
ConditionalIgnore
- Since:
- 2025.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanReturns whether the condition needs to access Nuxeo Runtime, such as getting a service withFramework.getService(Class).booleandefault booleanReturns whether this condition supports check at class level.
-
Method Details
-
shouldIgnore
boolean shouldIgnore()- Specified by:
shouldIgnorein interfaceConditionalIgnoreRule.Condition- Returns:
- whether the test(s) should be ignored
-
needsRuntime
default boolean needsRuntime()Returns whether the condition needs to access Nuxeo Runtime, such as getting a service withFramework.getService(Class).The condition can be evaluated at the very beginning of test run if the condition doesn't need to access Nuxeo Runtime. Which will save some initialization time.
By default, evaluate condition after Nuxeo Runtime is initialized
- Returns:
- whether the condition needs to access Nuxeo Runtime
-
supportsClassRule
default boolean supportsClassRule()Description copied from interface:ConditionalIgnoreRule.ConditionReturns whether this condition supports check at class level. Note: A condition supporting the class rule behavior will be called before theFeaturesRunner.BeforeClassStatement, at this moment Nuxeo Runtime is not fully initialized and injection is not performed yet.By default, conditions don't support it in order to keep backward compatibility.
- Specified by:
supportsClassRulein interfaceConditionalIgnoreRule.Condition
-