Class TestDescriptorStore

java.lang.Object
org.antublue.test.engine.internal.TestDescriptorStore

public final class TestDescriptorStore extends Object
Class to store a TestDescriptor based on UniqueId
  • Method Summary

    Modifier and Type
    Method
    Description
    Optional<org.junit.platform.engine.TestDescriptor>
    get(org.junit.platform.engine.UniqueId uniqueId)
    Method to get a TestDescriptor by UniqueId
    Method to get the singleton instance
    void
    store(org.junit.platform.engine.support.descriptor.EngineDescriptor engineDescriptor)
    Method to store the EngineDescriptor and all children

    Methods inherited from class java.lang.Object

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

    • singleton

      public static TestDescriptorStore singleton()
      Method to get the singleton instance
      Returns:
      the singleton instance
    • store

      public void store(org.junit.platform.engine.support.descriptor.EngineDescriptor engineDescriptor)
      Method to store the EngineDescriptor and all children
      Parameters:
      engineDescriptor - the engine descriptor
    • get

      public Optional<org.junit.platform.engine.TestDescriptor> get(org.junit.platform.engine.UniqueId uniqueId)
      Method to get a TestDescriptor by UniqueId
      Parameters:
      uniqueId - the unique id
      Returns:
      an Optional that may contain a TestDescriptor