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