From 3b3a92c5636da3bd98bef29a88ef9d17c77170dd Mon Sep 17 00:00:00 2001 From: Johnny Lim Date: Wed, 5 Jun 2019 22:58:56 +0900 Subject: [PATCH] Add missing @Test annotations This commit also restores assertion accidentally removed in commit 44d832158a60ba518565869e868052f72d0a972e. See gh-17069 --- .../SpringIterableConfigurationPropertySourceTests.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/source/SpringIterableConfigurationPropertySourceTests.java b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/source/SpringIterableConfigurationPropertySourceTests.java index 2b72b916e8..e9791c2e83 100644 --- a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/source/SpringIterableConfigurationPropertySourceTests.java +++ b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/source/SpringIterableConfigurationPropertySourceTests.java @@ -179,8 +179,11 @@ class SpringIterableConfigurationPropertySourceTests { DefaultPropertyMapper.INSTANCE); assertThat(adapter.stream().count()).isEqualTo(2); map.setThrowException(true); + map.put("key3", "value3"); + assertThat(adapter.stream().count()).isEqualTo(3); } + @Test public void originTrackedMapPropertySourceKeyAdditionInvalidatesCache() { // gh-13344 Map map = new LinkedHashMap<>(); @@ -194,6 +197,7 @@ class SpringIterableConfigurationPropertySourceTests { assertThat(adapter.stream().count()).isEqualTo(3); } + @Test public void readOnlyOriginTrackedMapPropertySourceKeyAdditionDoesNotInvalidateCache() { // gh-16717 Map map = new LinkedHashMap<>();