Package org.junit.jupiter.engine.script
Class Script
- java.lang.Object
-
- org.junit.jupiter.engine.script.Script
-
@API(status=INTERNAL, since="5.1") public final class Script extends Object
Script data class.- Since:
- 5.1
- See Also:
DisabledIf
,EnabledIf
,ScriptExecutionManager
-
-
Field Summary
Fields Modifier and Type Field Description static String
BIND_JUNIT_CONFIGURATION_PARAMETER
Accessor for JUnit Platform configuration parameters.static String
BIND_JUNIT_DISPLAY_NAME
Display name of the test or container.static String
BIND_JUNIT_TAGS
Set of all tags assigned to the current extension context.static String
BIND_JUNIT_UNIQUE_ID
Unique ID associated with the current extension context.static String
DEFAULT_SCRIPT_ENGINE_NAME
The script engine name defaults toNashorn
.static String
DEFAULT_SCRIPT_REASON_PATTERN
Default reason message pattern.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object other)
String
getAnnotationAsString()
Class<? extends Annotation>
getAnnotationType()
String
getEngine()
String
getReason()
String
getSource()
int
hashCode()
String
toReasonString(String resultAsString)
-
-
-
Field Detail
-
DEFAULT_SCRIPT_ENGINE_NAME
public static final String DEFAULT_SCRIPT_ENGINE_NAME
The script engine name defaults toNashorn
.- See Also:
- Constant Field Values
-
BIND_JUNIT_TAGS
public static final String BIND_JUNIT_TAGS
Set of all tags assigned to the current extension context.Value type:
Set<String>
- See Also:
ExtensionContext.getTags()
, Constant Field Values
-
BIND_JUNIT_UNIQUE_ID
public static final String BIND_JUNIT_UNIQUE_ID
Unique ID associated with the current extension context.Value type:
String
-
BIND_JUNIT_DISPLAY_NAME
public static final String BIND_JUNIT_DISPLAY_NAME
Display name of the test or container.Value type:
String
-
BIND_JUNIT_CONFIGURATION_PARAMETER
public static final String BIND_JUNIT_CONFIGURATION_PARAMETER
Accessor for JUnit Platform configuration parameters.Usage:
junitConfigurationParameter.get(key) -> String
-
DEFAULT_SCRIPT_REASON_PATTERN
public static final String DEFAULT_SCRIPT_REASON_PATTERN
Default reason message pattern.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Script
public Script(Annotation annotation, String engine, String source, String reason)
-
-
Method Detail
-
getAnnotationAsString
public String getAnnotationAsString()
-
getAnnotationType
public Class<? extends Annotation> getAnnotationType()
-
getEngine
public String getEngine()
-
getReason
public String getReason()
-
getSource
public String getSource()
-
toReasonString
public String toReasonString(String resultAsString)
- Returns:
- the string returned by
getReason()
with all placeholders replaced with their current values stored here.
-
-