BAEL-4871 Spring Conditional Annotations
This commit is contained in:
parent
93c3b2bf35
commit
90780c982e
|
@ -21,7 +21,9 @@ public class IsDevEnvConditionUnitTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void whenDevEnvNotEnabled_thenDevEnvConditionShouldNotPass() {
|
public void whenDevEnvNotEnabled_thenDevEnvConditionShouldNotPass() {
|
||||||
Assertions.assertTrue(
|
System.setProperty("env", "not-dev");
|
||||||
|
|
||||||
|
Assertions.assertFalse(
|
||||||
new IsDevEnvCondition().matches(
|
new IsDevEnvCondition().matches(
|
||||||
Mockito.mock(ConditionContext.class), Mockito.mock(AnnotatedTypeMetadata.class)
|
Mockito.mock(ConditionContext.class), Mockito.mock(AnnotatedTypeMetadata.class)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue