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.Object
Deprecated.Script data class.- Since:
- 5.1
- See Also:
DisabledIf
,EnabledIf
,ScriptExecutionManager
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
annotationAsString
Deprecated.private java.lang.Class<? extends java.lang.annotation.Annotation>
annotationType
Deprecated.static java.lang.String
BIND_JUNIT_CONFIGURATION_PARAMETER
Deprecated.Accessor for JUnit Platform configuration parameters.static java.lang.String
BIND_JUNIT_DISPLAY_NAME
Deprecated.Display name of the test or container.static java.lang.String
BIND_JUNIT_TAGS
Deprecated.Set of all tags assigned to the current extension context.static java.lang.String
BIND_JUNIT_UNIQUE_ID
Deprecated.Unique ID associated with the current extension context.(package private) static java.lang.String
BIND_SYSTEM_ENVIRONMENT
Deprecated.Accessor for operating system environment variables.(package private) static java.lang.String
BIND_SYSTEM_PROPERTY
Deprecated.Accessor for JVM system properties.static java.lang.String
DEFAULT_SCRIPT_ENGINE_NAME
Deprecated.The script engine name defaults toNashorn
.static java.lang.String
DEFAULT_SCRIPT_REASON_PATTERN
Deprecated.Default reason message pattern.private java.lang.String
engine
Deprecated.private int
hashCode
Deprecated.private java.lang.String
reason
Deprecated.private static java.lang.String
REASON_ANNOTATION_PLACEHOLDER
Deprecated.Placeholder name for theannotation.toString()
value.private static java.lang.String
REASON_RESULT_PLACEHOLDER
Deprecated.Placeholder name for String representation of the result object.private static java.lang.String
REASON_SOURCE_PLACEHOLDER
Deprecated.Placeholder name for the script source.private java.lang.String
source
Deprecated.
-
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 int
computeHashCode()
Deprecated.PropertiesannotationType
andreason
are not included on purpose.boolean
equals(java.lang.Object other)
Deprecated.java.lang.String
getAnnotationAsString()
Deprecated.java.lang.Class<? extends java.lang.annotation.Annotation>
getAnnotationType()
Deprecated.java.lang.String
getEngine()
Deprecated.java.lang.String
getReason()
Deprecated.java.lang.String
getSource()
Deprecated.int
hashCode()
Deprecated.java.lang.String
toReasonString(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.PropertiesannotationType
andreason
are 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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
Deprecated.- Overrides:
hashCode
in 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.
-
-