Class TestClassHierarchy

java.lang.Object
net.thucydides.model.domain.TestClassHierarchy

public class TestClassHierarchy extends Object
Test paths need to use displayed names when used rather than package names. This class keeps track of the relationships between test classes and display names, so they can be retrieved later when determining the test path for a given test.
  • Constructor Details

    • TestClassHierarchy

      public TestClassHierarchy()
  • Method Details

    • getInstance

      public static TestClassHierarchy getInstance()
    • testSuiteStarted

      public void testSuiteStarted(String className, String uniqueIdentifier, String displayName, String parentUniqueIdentifier)
      Keep track of relationships between test classes and display names such as in JUnit 5 tests
    • displayNameFor

      public Optional<String> displayNameFor(String path)