类 EnabledIfCondition
java.lang.Object
cn.taketoday.test.context.junit.jupiter.AbstractExpressionEvaluatingCondition
cn.taketoday.test.context.junit.jupiter.EnabledIfCondition
- 所有已实现的接口:
org.junit.jupiter.api.extension.ExecutionCondition,org.junit.jupiter.api.extension.Extension
EnabledIfCondition is an ExecutionCondition
that supports the @EnabledIf annotation when using the Infra
TestContext Framework in conjunction with JUnit 5's Jupiter programming model.
Any attempt to use the EnabledIfCondition without the presence of
@EnabledIf 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 enabled if@EnabledIfis present on the corresponding test class or test method and the configured expression evaluates totrue.从类继承的方法 cn.taketoday.test.context.junit.jupiter.AbstractExpressionEvaluatingCondition
evaluateAnnotation
-
构造器详细资料
-
EnabledIfCondition
public EnabledIfCondition()
-
-
方法详细资料
-
evaluateExecutionCondition
public org.junit.jupiter.api.extension.ConditionEvaluationResult evaluateExecutionCondition(org.junit.jupiter.api.extension.ExtensionContext context) Containers and tests are enabled if@EnabledIfis present on the corresponding test class or test method and the configured expression evaluates totrue.
-