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 interface
Deprecated, for removal: This API element is subject to removal in a future version.protected class
static class
static @interface
Deprecated, for removal: This API element is subject to removal in a future version.since 2025.0, useConditionalIgnore
insteadstatic final class
Deprecated.since 11.1,IsolatedClassloader
doesn't exist anymorestatic final class
Deprecated, for removal: This API element is subject to removal in a future version.since 2025.0, not usedstatic final class
Deprecated, for removal: This API element is subject to removal in a future version.since 2025.0, useIgnoreIfWindows
instead -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.junit.runners.model.Statement
apply
(org.junit.runners.model.Statement base, org.junit.runner.Description description) org.junit.runners.model.Statement
apply
(org.junit.runners.model.Statement base, org.junit.runners.model.FrameworkMethod frameworkMethod, Object target) protected void
injectCondition
(ConditionalIgnoreRule.Condition condition, Object target, Method method) protected ConditionalIgnoreRule.Condition
instantiateCondition
(Class<? extends ConditionalIgnoreRule.Condition> conditionType) protected String
returnShouldIgnoreForClassOrNull
(Class<? extends ConditionalIgnoreRule.Condition> conditionType, String cause) protected String
returnShouldIgnoreForMethodOrNull
(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:
apply
in 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:
apply
in 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.Condition
instead