Package org.nuxeo.runtime.test.runner
Class ConditionalIgnoreRule
java.lang.Object
org.nuxeo.runtime.test.runner.ConditionalIgnoreRule
- All Implemented Interfaces:
org.junit.rules.MethodRule,org.junit.rules.TestRule
public class ConditionalIgnoreRule
extends Object
implements org.junit.rules.TestRule, org.junit.rules.MethodRule
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceDeprecated, for removal: This API element is subject to removal in a future version.protected classstatic classstatic @interfaceDeprecated, for removal: This API element is subject to removal in a future version.since 2025.0, useConditionalIgnoreinsteadstatic final classDeprecated.since 11.1,IsolatedClassloaderdoesn't exist anymorestatic final classDeprecated, for removal: This API element is subject to removal in a future version.since 2025.0, not usedstatic final classDeprecated, for removal: This API element is subject to removal in a future version.since 2025.0, useIgnoreIfWindowsinstead -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.junit.runners.model.Statementapply(org.junit.runners.model.Statement base, org.junit.runner.Description description) org.junit.runners.model.Statementapply(org.junit.runners.model.Statement base, org.junit.runners.model.FrameworkMethod frameworkMethod, Object target) protected voidinjectCondition(ConditionalIgnoreRule.Condition condition, Object target, Method method) protected ConditionalIgnoreRule.ConditioninstantiateCondition(Class<? extends ConditionalIgnoreRule.Condition> conditionType) protected StringreturnShouldIgnoreForClassOrNull(Class<? extends ConditionalIgnoreRule.Condition> conditionType, String cause) protected StringreturnShouldIgnoreForMethodOrNull(Class<? extends ConditionalIgnoreRule.Condition> conditionType, String cause, Object target, Method method)
-
Constructor Details
-
ConditionalIgnoreRule
public ConditionalIgnoreRule()
-
-
Method Details
-
apply
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description) - Specified by:
applyin interfaceorg.junit.rules.TestRule
-
apply
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runners.model.FrameworkMethod frameworkMethod, Object target) - Specified by:
applyin interfaceorg.junit.rules.MethodRule
-
returnShouldIgnoreForClassOrNull
protected String returnShouldIgnoreForClassOrNull(Class<? extends ConditionalIgnoreRule.Condition> conditionType, String cause) -
returnShouldIgnoreForMethodOrNull
-
instantiateCondition
protected ConditionalIgnoreRule.Condition instantiateCondition(Class<? extends ConditionalIgnoreRule.Condition> conditionType) -
injectCondition
protected void injectCondition(ConditionalIgnoreRule.Condition condition, Object target, Method method)
-
ConditionalIgnore.Conditioninstead