Class Script

    • 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 to Nashorn.
      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 the annotation.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.
       
    • Field Detail

      • DEFAULT_SCRIPT_ENGINE_NAME

        public static final java.lang.String DEFAULT_SCRIPT_ENGINE_NAME
        Deprecated.
        The script engine name defaults to Nashorn.
        See Also:
        Constant Field Values
      • 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 the annotation.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.
        Properties annotationType and reason 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 class java.lang.Object
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class java.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.