程序包 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
-
可选元素概要
可选元素修饰符和类型可选元素说明String[]The architectures on which the annotated class or method should be disabled.SeeDisabledOnOs.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[] valueThe 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[] osThe operating systems on which the annotated class or method should be disabled.- 返回:
- the operating systems where the test is disabled
- 默认值:
- {}
-
architecture
String[] architectureThe architectures on which the annotated class or method should be disabled.- 返回:
- the architectures where the test is disabled
- 默认值:
- {}
-
disabledReason
String disabledReasonSeeDisabledOnOs.disabledReason().- 返回:
- disabled reason
- 默认值:
- ""
-