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