类 DisabledIfCondition
java.lang.Object
cn.taketoday.test.context.junit.jupiter.AbstractExpressionEvaluatingCondition
cn.taketoday.test.context.junit.jupiter.DisabledIfCondition
- 所有已实现的接口:
org.junit.jupiter.api.extension.ExecutionCondition,org.junit.jupiter.api.extension.Extension
DisabledIfCondition is an ExecutionCondition
that supports the @DisabledIf annotation when using the Infra
TestContext Framework in conjunction with JUnit 5's Jupiter programming model.
Any attempt to use the DisabledIfCondition without the presence of
@DisabledIf will result in an enabled
ConditionEvaluationResult.
- 从以下版本开始:
- 4.0
- 作者:
- Sam Brannen
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明org.junit.jupiter.api.extension.ConditionEvaluationResultevaluateExecutionCondition(org.junit.jupiter.api.extension.ExtensionContext context) Containers and tests are disabled if@DisabledIfis present on the corresponding test class or test method and the configured expression evaluates totrue.从类继承的方法 cn.taketoday.test.context.junit.jupiter.AbstractExpressionEvaluatingCondition
evaluateAnnotation
-
构造器详细资料
-
DisabledIfCondition
public DisabledIfCondition()
-
-
方法详细资料
-
evaluateExecutionCondition
public org.junit.jupiter.api.extension.ConditionEvaluationResult evaluateExecutionCondition(org.junit.jupiter.api.extension.ExtensionContext context) Containers and tests are disabled if@DisabledIfis present on the corresponding test class or test method and the configured expression evaluates totrue.
-