程序包 infra.test.junit

Annotation Interface DisabledOnOs


@Target({TYPE,METHOD}) @Retention(RUNTIME) @ExtendWith(DisabledOnOsCondition.class) public @interface DisabledOnOs
Improves JUnit5's DisabledOnOs by adding an architecture check.
从以下版本开始:
4.0
作者:
Moritz Halbritter
  • 可选元素概要

    可选元素
    修饰符和类型
    可选元素
    说明
    The architectures on which the annotated class or method should be disabled.
    See DisabledOnOs.disabledReason().
    org.junit.jupiter.api.condition.OS[]
    The operating systems on which the annotated class or method should be disabled.
    org.junit.jupiter.api.condition.OS[]
    The operating systems on which the annotated class or method should be disabled.
  • 元素详细资料

    • value

      org.junit.jupiter.api.condition.OS[] value
      The operating systems on which the annotated class or method should be disabled.
      返回:
      the operating systems where the test is disabled
      默认值:
      {}
    • os

      org.junit.jupiter.api.condition.OS[] os
      The operating systems on which the annotated class or method should be disabled.
      返回:
      the operating systems where the test is disabled
      默认值:
      {}
    • architecture

      String[] architecture
      The architectures on which the annotated class or method should be disabled.
      返回:
      the architectures where the test is disabled
      默认值:
      {}
    • disabledReason

      String disabledReason
      See DisabledOnOs.disabledReason().
      返回:
      disabled reason
      默认值:
      ""