类 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

public class DisabledIfCondition extends AbstractExpressionEvaluatingCondition
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
另请参阅:
  • 构造器详细资料

    • 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 @DisabledIf is present on the corresponding test class or test method and the configured expression evaluates to true.