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 String
BIND_JUNIT_CONFIGURATION_PARAMETER
Deprecated.Accessor for JUnit Platform configuration parameters.static String
BIND_JUNIT_DISPLAY_NAME
Deprecated.Display name of the test or container.static String
BIND_JUNIT_TAGS
Deprecated.Set of all tags assigned to the current extension context.static String
BIND_JUNIT_UNIQUE_ID
Deprecated.Unique ID associated with the current extension context.static String
DEFAULT_SCRIPT_ENGINE_NAME
Deprecated.The script engine name defaults toNashorn
.static String
DEFAULT_SCRIPT_REASON_PATTERN
Deprecated.Default reason message pattern.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(Object other)
Deprecated.String
getAnnotationAsString()
Deprecated.Class<? extends Annotation>
getAnnotationType()
Deprecated.String
getEngine()
Deprecated.String
getReason()
Deprecated.String
getSource()
Deprecated.int
hashCode()
Deprecated.String
toReasonString(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.
-
-