Top Description Annotations Classes Enums
module org.junit.jupiter.api

Package org.junit.jupiter.api.condition

Annotations
@NullMarked
Imports
org.jspecify.annotations.NullMarked

Annotation-based conditions for enabling or disabling tests in JUnit Jupiter.

Annotation Summary

Modifier and TypeAnnotation and Description
public @interface
DisabledForJreRange

@DisabledForJreRange is used to signal that the annotated test class or test method is disabled for a specific range of Java Runtime Environment (JRE) versions.

public @interface
DisabledIf

@DisabledIf is used to signal that the annotated test class or test method is disabled if the provided condition evaluates to true.

public @interface
DisabledIfEnvironmentVariable

@DisabledIfEnvironmentVariable is used to signal that the annotated test class or test method is disabled if the value of the specified environment variable matches the specified regular expression.

public @interface
DisabledIfEnvironmentVariables

@DisabledIfEnvironmentVariables is a container for one or more @DisabledIfEnvironmentVariable declarations.

public @interface
DisabledIfSystemProperties

@DisabledIfSystemProperties is a container for one or more @DisabledIfSystemProperty declarations.

public @interface
DisabledIfSystemProperty

@DisabledIfSystemProperty is used to signal that the annotated test class or test method is disabled if the value of the specified system property matches the specified regular expression.

public @interface
DisabledInNativeImage

@DisabledInNativeImage is used to signal that the annotated test class or test method is disabled when executing within a GraalVM native image.

public @interface
DisabledOnJre

@DisabledOnJre is used to signal that the annotated test class or test method is disabled on one or more specified Java Runtime Environment (JRE) versions.

public @interface
DisabledOnOs

@DisabledOnOs is used to signal that the annotated test class or test method is disabled on one or more specified operating systems or on one or more specified architectures

If operating systems and architectures are specified, the annotated test class or test method is disabled if both conditions apply.

public @interface
EnabledForJreRange

@EnabledForJreRange is used to signal that the annotated test class or test method is only enabled for a specific range of Java Runtime Environment (JRE) versions.

public @interface
EnabledIf

@EnabledIf is used to signal that the annotated test class or test method is only enabled if the provided condition evaluates to true.

public @interface
EnabledIfEnvironmentVariable

@EnabledIfEnvironmentVariable is used to signal that the annotated test class or test method is only enabled if the value of the specified environment variable matches the specified regular expression.

public @interface
EnabledIfEnvironmentVariables

@EnabledIfEnvironmentVariables is a container for one or more @EnabledIfEnvironmentVariable declarations.

public @interface
EnabledIfSystemProperties

@EnabledIfSystemProperties is a container for one or more @EnabledIfSystemProperty declarations.

public @interface
EnabledIfSystemProperty

@EnabledIfSystemProperty is used to signal that the annotated test class or test method is only enabled if the value of the specified system property matches the specified regular expression.

public @interface
EnabledInNativeImage

@EnabledInNativeImage is used to signal that the annotated test class or test method is only enabled when executing within a GraalVM native image.

public @interface
EnabledOnJre

@EnabledOnJre is used to signal that the annotated test class or test method is only enabled on one or more specified Java Runtime Environment (JRE) versions.

public @interface
EnabledOnOs

@EnabledOnOs is used to signal that the annotated test class or test method is only enabled on one or more specified operating systems or one or more specified architectures.

Class Summary

Modifier and TypeClass and Description
pack-priv abstract class
pack-priv abstract class
pack-priv abstract class
AbstractOsBasedExecutionCondition<A extends Annotation>

Base class for OS-based ExecutionCondition implementations.

pack-priv abstract class
AbstractRepeatableAnnotationCondition<
the type of repeatable annotation supported by this ExecutionCondition
A extends Annotation
>

Abstract base class for ExecutionCondition implementations that support repeatable annotations.

pack-priv abstract class
pack-priv class
pack-priv class
pack-priv class
pack-priv class
pack-priv class
pack-priv class
pack-priv class
pack-priv class
pack-priv class
pack-priv class
pack-priv class
pack-priv class
pack-priv abstract class

Enum Summary

Modifier and TypeEnum and Description
public enum
JRE

Enumeration of Java Runtime Environment (JRE) versions.

public enum
OS

Enumeration of common operating systems used for testing Java applications.