Class VintageTestDescriptor

    • Field Detail

      • SEGMENT_TYPE_RUNNER

        public static final java.lang.String SEGMENT_TYPE_RUNNER
        See Also:
        Constant Field Values
      • SEGMENT_TYPE_TEST

        public static final java.lang.String SEGMENT_TYPE_TEST
        See Also:
        Constant Field Values
      • SEGMENT_TYPE_DYNAMIC

        public static final java.lang.String SEGMENT_TYPE_DYNAMIC
        See Also:
        Constant Field Values
      • description

        protected org.junit.runner.Description description
    • Constructor Detail

      • VintageTestDescriptor

        public VintageTestDescriptor​(UniqueId uniqueId,
                                     org.junit.runner.Description description,
                                     TestSource source)
      • VintageTestDescriptor

        VintageTestDescriptor​(UniqueId uniqueId,
                              org.junit.runner.Description description,
                              java.lang.String displayName,
                              TestSource source)
    • Method Detail

      • generateDisplayName

        private static java.lang.String generateDisplayName​(org.junit.runner.Description description)
      • getDescription

        public org.junit.runner.Description getDescription()
      • getLegacyReportingName

        public java.lang.String getLegacyReportingName()
        Description copied from interface: TestDescriptor
        Get the name of this descriptor in a format that is suitable for legacy reporting infrastructure — for example, for reporting systems built on the Ant-based XML reporting format for JUnit 4.

        The default implementation simply delegates to TestDescriptor.getDisplayName().

        Returns:
        the legacy reporting name; never null or blank
      • canBeRemovedFromHierarchy

        protected boolean canBeRemovedFromHierarchy()
      • tryToExcludeFromRunner

        protected boolean tryToExcludeFromRunner​(org.junit.runner.Description description)
      • pruneDescriptorsForObsoleteDescriptions

        void pruneDescriptorsForObsoleteDescriptions​(java.util.List<org.junit.runner.Description> newSiblingDescriptions)
      • addTagsFromParent

        private void addTagsFromParent​(java.util.Set<TestTag> tags)
      • addCategoriesAsTags

        private void addCategoriesAsTags​(java.util.Set<TestTag> tags)