BAEL-4871 Spring Conditional Annotations

This commit is contained in:
majewsk6 2021-05-21 14:59:07 +02:00
parent adfe5c687e
commit 93c3b2bf35
1 changed files with 2 additions and 0 deletions

View File

@ -31,6 +31,8 @@ public class DevEnvLoggingConfigurationUnitTest {
@Test
public void whenDevEnvNotEnabled_thenDevEnvLoggingConfigurationAndLoggingServiceShouldNotBeCreated() {
System.setProperty("env", "not-dev");
contextRunner
.withUserConfiguration(ConditionalTestConfiguration.class)
.run(context ->