@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 |
---|---|
Optional<String> |
get(String key)
Get the configuration property stored under the specified
key . |
Optional<Boolean> |
getBoolean(String key)
Get the boolean configuration property stored under the specified
key . |
int |
size()
Get the number of configuration properties stored directly in this
ConfigurationParameters . |
Optional<String> get(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 valueOptional<Boolean> getBoolean(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
.