Package org.nuxeo.runtime.test.runner
Class IgnoreIfWindows
java.lang.Object
org.nuxeo.runtime.test.runner.IgnoreIfWindows
- All Implemented Interfaces:
ConditionalIgnore.Condition,ConditionalIgnoreRule.Condition
- Direct Known Subclasses:
ConditionalIgnoreRule.IgnoreWindows
- Since:
- 2025.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether the condition needs to access Nuxeo Runtime, such as getting a service withFramework.getService(Class).booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.nuxeo.runtime.test.runner.ConditionalIgnore.Condition
supportsClassRule
-
Constructor Details
-
IgnoreIfWindows
public IgnoreIfWindows()
-
-
Method Details
-
shouldIgnore
public boolean shouldIgnore()- Specified by:
shouldIgnorein interfaceConditionalIgnore.Condition- Specified by:
shouldIgnorein interfaceConditionalIgnoreRule.Condition- Returns:
- whether the test(s) should be ignored
-
needsRuntime
public boolean needsRuntime()Description copied from interface:ConditionalIgnore.ConditionReturns 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
- Specified by:
needsRuntimein interfaceConditionalIgnore.Condition- Returns:
- whether the condition needs to access Nuxeo Runtime
-