Interface ConditionalIgnore.Condition

All Superinterfaces:
ConditionalIgnoreRule.Condition
All Known Implementing Classes:
ConditionalIgnoreRule.IgnoreWindows, IgnoreIfWindows
Enclosing class:
ConditionalIgnore

public static interface ConditionalIgnore.Condition extends ConditionalIgnoreRule.Condition
Since:
2025.0
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    Returns whether the condition needs to access Nuxeo Runtime, such as getting a service with Framework.getService(Class).
    boolean
     
    default boolean
    Returns whether this condition supports check at class level.
  • Method Details

    • shouldIgnore

      boolean shouldIgnore()
      Specified by:
      shouldIgnore in interface ConditionalIgnoreRule.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 with Framework.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.Condition
      Returns whether this condition supports check at class level. Note: A condition supporting the class rule behavior will be called before the FeaturesRunner.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:
      supportsClassRule in interface ConditionalIgnoreRule.Condition