BAEL-4871 Spring Conditional Annotations
This commit is contained in:
parent
adfe5c687e
commit
93c3b2bf35
|
@ -31,6 +31,8 @@ public class DevEnvLoggingConfigurationUnitTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void whenDevEnvNotEnabled_thenDevEnvLoggingConfigurationAndLoggingServiceShouldNotBeCreated() {
|
public void whenDevEnvNotEnabled_thenDevEnvLoggingConfigurationAndLoggingServiceShouldNotBeCreated() {
|
||||||
|
System.setProperty("env", "not-dev");
|
||||||
|
|
||||||
contextRunner
|
contextRunner
|
||||||
.withUserConfiguration(ConditionalTestConfiguration.class)
|
.withUserConfiguration(ConditionalTestConfiguration.class)
|
||||||
.run(context ->
|
.run(context ->
|
||||||
|
|
Loading…
Reference in New Issue