Class EngineDiscoveryResults

java.lang.Object
org.junit.platform.testkit.engine.EngineDiscoveryResults

@API(status=MAINTAINED, since="1.13.3") public class EngineDiscoveryResults extends Object
EngineDiscoveryResults represents the results of test discovery by a TestEngine on the JUnit Platform and provides access to the TestDescriptor of the engine and any DiscoveryIssues that were encountered.
Since:
1.13
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final List<org.junit.platform.engine.DiscoveryIssue>
     
    private final org.junit.platform.engine.TestDescriptor
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    EngineDiscoveryResults(org.junit.platform.engine.TestDescriptor engineDescriptor, List<org.junit.platform.engine.DiscoveryIssue> discoveryIssues)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    List<org.junit.platform.engine.DiscoveryIssue>
    Returns the issues that were encountered during discovery.
    org.junit.platform.engine.TestDescriptor
    Returns the root TestDescriptor of the engine.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • engineDescriptor

      private final org.junit.platform.engine.TestDescriptor engineDescriptor
    • discoveryIssues

      private final List<org.junit.platform.engine.DiscoveryIssue> discoveryIssues
  • Constructor Details

    • EngineDiscoveryResults

      EngineDiscoveryResults(org.junit.platform.engine.TestDescriptor engineDescriptor, List<org.junit.platform.engine.DiscoveryIssue> discoveryIssues)
  • Method Details

    • getEngineDescriptor

      public org.junit.platform.engine.TestDescriptor getEngineDescriptor()
      Returns the root TestDescriptor of the engine.
      Returns:
      the root TestDescriptor of the engine
    • getDiscoveryIssues

      public List<org.junit.platform.engine.DiscoveryIssue> getDiscoveryIssues()
      Returns the issues that were encountered during discovery.
      Returns:
      the issues that were encountered during discovery