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 private java.lang.StringannotationAsStringDeprecated.private java.lang.Class<? extends java.lang.annotation.Annotation>annotationTypeDeprecated.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.(package private) static java.lang.StringBIND_SYSTEM_ENVIRONMENTDeprecated.Accessor for operating system environment variables.(package private) static java.lang.StringBIND_SYSTEM_PROPERTYDeprecated.Accessor for JVM system properties.static java.lang.StringDEFAULT_SCRIPT_ENGINE_NAMEDeprecated.The script engine name defaults toNashorn.static java.lang.StringDEFAULT_SCRIPT_REASON_PATTERNDeprecated.Default reason message pattern.private java.lang.StringengineDeprecated.private inthashCodeDeprecated.private java.lang.StringreasonDeprecated.private static java.lang.StringREASON_ANNOTATION_PLACEHOLDERDeprecated.Placeholder name for theannotation.toString()value.private static java.lang.StringREASON_RESULT_PLACEHOLDERDeprecated.Placeholder name for String representation of the result object.private static java.lang.StringREASON_SOURCE_PLACEHOLDERDeprecated.Placeholder name for the script source.private java.lang.StringsourceDeprecated.
-
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 private intcomputeHashCode()Deprecated.PropertiesannotationTypeandreasonare not included on purpose.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
-
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
-
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
-
BIND_SYSTEM_PROPERTY
static final java.lang.String BIND_SYSTEM_PROPERTY
Deprecated.Accessor for JVM system properties.Usage:
systemProperty.get(key) -> String- See Also:
System.getProperty(String), Constant Field Values
-
BIND_SYSTEM_ENVIRONMENT
static final java.lang.String BIND_SYSTEM_ENVIRONMENT
Deprecated.Accessor for operating system environment variables.Usage:
systemEnvironment.get(key) -> String- See Also:
System.getenv(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
-
REASON_ANNOTATION_PLACEHOLDER
private static final java.lang.String REASON_ANNOTATION_PLACEHOLDER
Deprecated.Placeholder name for theannotation.toString()value.- See Also:
- Constant Field Values
-
REASON_RESULT_PLACEHOLDER
private static final java.lang.String REASON_RESULT_PLACEHOLDER
Deprecated.Placeholder name for String representation of the result object.- See Also:
- Constant Field Values
-
REASON_SOURCE_PLACEHOLDER
private static final java.lang.String REASON_SOURCE_PLACEHOLDER
Deprecated.Placeholder name for the script source.- See Also:
- Constant Field Values
-
annotationType
private final java.lang.Class<? extends java.lang.annotation.Annotation> annotationType
Deprecated.
-
annotationAsString
private final java.lang.String annotationAsString
Deprecated.
-
engine
private final java.lang.String engine
Deprecated.
-
source
private final java.lang.String source
Deprecated.
-
reason
private final java.lang.String reason
Deprecated.
-
hashCode
private final int hashCode
Deprecated.
-
-
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
-
computeHashCode
private int computeHashCode()
Deprecated.PropertiesannotationTypeandreasonare not included on purpose. This allows more cache hits when using instances of this class as keys in a hash map.
-
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.
-
-