Class DefaultMethodOrdererContext

    • Field Detail

      • testClass

        private final java.lang.Class<?> testClass
      • methodDescriptors

        private final java.util.List<? extends MethodDescriptor> methodDescriptors
    • Constructor Detail

      • DefaultMethodOrdererContext

        DefaultMethodOrdererContext​(java.util.List<? extends MethodDescriptor> methodDescriptors,
                                    java.lang.Class<?> testClass,
                                    JupiterConfiguration configuration)
    • Method Detail

      • getConfigurationParameter

        public java.util.Optional<java.lang.String> getConfigurationParameter​(java.lang.String key)
        Description copied from interface: MethodOrdererContext
        Get the configuration parameter stored under the specified key.

        If no such key is present in the ConfigurationParameters for the JUnit Platform, an attempt will be made to look up the value as a JVM system property. If no such system property exists, an attempt will be made to look up the value in the JUnit Platform properties file.

        Specified by:
        getConfigurationParameter in interface MethodOrdererContext
        Parameters:
        key - the key to look up; never null or blank
        Returns:
        an Optional containing the value; never null but potentially empty
        See Also:
        System.getProperty(String), ConfigurationParameters
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object