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 TypeMethodDescriptionboolean
Returns whether the condition needs to access Nuxeo Runtime, such as getting a service withFramework.getService(Class)
.boolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.nuxeo.runtime.test.runner.ConditionalIgnore.Condition
supportsClassRule
-
Constructor Details
-
IgnoreIfWindows
public IgnoreIfWindows()
-
-
Method Details
-
shouldIgnore
public boolean shouldIgnore()- Specified by:
shouldIgnore
in interfaceConditionalIgnore.Condition
- Specified by:
shouldIgnore
in interfaceConditionalIgnoreRule.Condition
- Returns:
- whether the test(s) should be ignored
-
needsRuntime
public boolean needsRuntime()Description copied from interface:ConditionalIgnore.Condition
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
- Specified by:
needsRuntime
in interfaceConditionalIgnore.Condition
- Returns:
- whether the condition needs to access Nuxeo Runtime
-