Class TestEngineTestDescriptorStore
java.lang.Object
org.antublue.test.engine.internal.TestEngineTestDescriptorStore
Class to store TestDescriptors based on UniqueId
-
Method Summary
Modifier and TypeMethodDescriptionOptional<org.junit.platform.engine.TestDescriptor>get(org.junit.platform.engine.UniqueId uniqueId) Method to get a TestDescriptor based on UniqueIdMethod to get an instance of the TestEngineTestDescriptorStorevoidstore(org.junit.platform.engine.support.descriptor.EngineDescriptor engineDescriptor) Method to store the EngineDescriptor and all children
-
Method Details
-
getInstance
Method to get an instance of the TestEngineTestDescriptorStore- Returns:
- the singleton instance of a TestEngineTestDescriptorStore
-
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 based on UniqueId- Parameters:
uniqueId- the unique id- Returns:
- an Optional that may contain a TestDescriptor
-