@API(value=Experimental) public interface ConfigurationParameters
TestEngines may use to
influence test discovery and execution.
For example, the JUnit Jupiter engine uses a configuration parameter to enable IDEs and build tools to deactivate conditional test execution.
TestEngine,
EngineDiscoveryRequest,
ExecutionRequest| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<java.lang.String> |
get(java.lang.String key)
Get the configuration property stored under the specified
key. |
int |
size()
Get the number of configuration properties stored directly in this
ConfigurationParameters. |
java.util.Optional<java.lang.String> get(java.lang.String key)
key.
If no such key is present in this ConfigurationParameters,
an attempt will be made to look up the value as a Java system property.
key - the key to look up; never null or blankOptional containing the potential valueint size()
ConfigurationParameters.