Class TestRun.VintageDescriptors

  • Enclosing class:
    TestRun

    private static class TestRun.VintageDescriptors
    extends java.lang.Object
    • Constructor Detail

      • VintageDescriptors

        VintageDescriptors()
    • Method Detail

      • getUnambiguously

        java.util.Optional<VintageTestDescriptor> getUnambiguously​(org.junit.runner.Description description)
        Returns the TestDescriptor that represents the specified Description.

        There are edge cases where multiple Descriptions with the same uniqueId exist, e.g. when using overloaded methods to define theories. In this case, we try to find the correct TestDescriptor by checking for object identity on the Description it represents.

        Parameters:
        description - the Description to look up
      • incrementSkippedOrStarted

        public void incrementSkippedOrStarted()