@CompileStatic
class ConditionEvaluationContext
extends Object
Delegate object for GroovyEnabledIf and GroovyDisabledIf closures, providing convenient access to environment, system properties, and JUnit context.
| Type | Name and description |
|---|---|
int |
javaVersionCurrent Java feature version, for example 17 or 21. |
String |
junitDisplayNameDisplay name of the current JUnit element. |
Set<String> |
junitTagsTags associated with the current JUnit element. |
String |
junitUniqueIdUnique identifier of the current JUnit element. |
Map<String, String> |
systemEnvironmentProcess environment variables visible to the current JVM. |
Properties |
systemPropertiesJava system properties visible to the current JVM. |
| Constructor and description |
|---|
ConditionEvaluationContext(ExtensionContext extensionContext)Creates a closure delegate backed by the supplied JUnit extension context. |
Current Java feature version, for example 17 or 21.
Display name of the current JUnit element.
Unique identifier of the current JUnit element.
Process environment variables visible to the current JVM.
Java system properties visible to the current JVM.
Creates a closure delegate backed by the supplied JUnit extension context.
extensionContext - the JUnit context currently being evaluatedCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.