Search in sources :

Example 16 with ConfigurationParameters

use of org.junit.platform.engine.ConfigurationParameters in project junit5 by junit-team.

the class LauncherConfigurationParametersTests method noConfigParams.

@Test
void noConfigParams() {
    ConfigurationParameters configParams = fromMap(emptyMap());
    assertThat(configParams.size()).isEqualTo(0);
    assertThat(configParams.get(KEY)).isEmpty();
    assertThat(configParams.toString()).doesNotContain(KEY);
}
Also used : ConfigurationParameters(org.junit.platform.engine.ConfigurationParameters) Test(org.junit.jupiter.api.Test)

Aggregations

ConfigurationParameters (org.junit.platform.engine.ConfigurationParameters)16 Test (org.junit.jupiter.api.Test)14 Lifecycle (org.junit.jupiter.api.TestInstance.Lifecycle)3 TestInstanceLifecycleUtils.getDefaultTestInstanceLifecycle (org.junit.jupiter.engine.descriptor.TestInstanceLifecycleUtils.getDefaultTestInstanceLifecycle)3 TestInstanceLifecycleUtils.getTestInstanceLifecycle (org.junit.jupiter.engine.descriptor.TestInstanceLifecycleUtils.getTestInstanceLifecycle)3 TestEngineSpy (org.junit.platform.engine.test.TestEngineSpy)3 Method (java.lang.reflect.Method)1 TestFactory (org.junit.jupiter.api.TestFactory)1 ExtensionContext (org.junit.jupiter.api.extension.ExtensionContext)1 ClassExtensionContext (org.junit.jupiter.engine.descriptor.ClassExtensionContext)1 ClassTestDescriptor (org.junit.jupiter.engine.descriptor.ClassTestDescriptor)1 JupiterEngineDescriptor (org.junit.jupiter.engine.descriptor.JupiterEngineDescriptor)1 JupiterEngineExtensionContext (org.junit.jupiter.engine.descriptor.JupiterEngineExtensionContext)1 MethodExtensionContext (org.junit.jupiter.engine.descriptor.MethodExtensionContext)1 NestedClassTestDescriptor (org.junit.jupiter.engine.descriptor.NestedClassTestDescriptor)1 TestMethodTestDescriptor (org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor)1 UniqueId (org.junit.platform.engine.UniqueId)1 LauncherDiscoveryRequest (org.junit.platform.launcher.LauncherDiscoveryRequest)1