Class TestInfoParameterResolver.DefaultTestInfo

  • All Implemented Interfaces:
    org.junit.jupiter.api.TestInfo
    Enclosing class:
    TestInfoParameterResolver

    private static class TestInfoParameterResolver.DefaultTestInfo
    extends java.lang.Object
    implements org.junit.jupiter.api.TestInfo
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String displayName  
      private java.util.Set<java.lang.String> tags  
      private java.util.Optional<java.lang.Class<?>> testClass  
      private java.util.Optional<java.lang.reflect.Method> testMethod  
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultTestInfo​(org.junit.jupiter.api.extension.ExtensionContext extensionContext)  
    • Field Detail

      • displayName

        private final java.lang.String displayName
      • tags

        private final java.util.Set<java.lang.String> tags
      • testClass

        private final java.util.Optional<java.lang.Class<?>> testClass
      • testMethod

        private final java.util.Optional<java.lang.reflect.Method> testMethod
    • Constructor Detail

      • DefaultTestInfo

        DefaultTestInfo​(org.junit.jupiter.api.extension.ExtensionContext extensionContext)
    • Method Detail

      • getDisplayName

        public java.lang.String getDisplayName()
        Specified by:
        getDisplayName in interface org.junit.jupiter.api.TestInfo
      • getTags

        public java.util.Set<java.lang.String> getTags()
        Specified by:
        getTags in interface org.junit.jupiter.api.TestInfo
      • getTestClass

        public java.util.Optional<java.lang.Class<?>> getTestClass()
        Specified by:
        getTestClass in interface org.junit.jupiter.api.TestInfo
      • getTestMethod

        public java.util.Optional<java.lang.reflect.Method> getTestMethod()
        Specified by:
        getTestMethod in interface org.junit.jupiter.api.TestInfo
      • toString

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

        private static java.lang.Object nullSafeGet​(java.util.Optional<?> optional)