Skip to content

Commit 199606d

Browse files
committed
Merge pull request #17069 from izeye
* pr/17069: Add missing @test annotations Closes gh-17069
2 parents 1d5647b + 3b3a92c commit 199606d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/source/SpringIterableConfigurationPropertySourceTests.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,11 @@ void concurrentModificationExceptionInvalidatesCache() {
179179
DefaultPropertyMapper.INSTANCE);
180180
assertThat(adapter.stream().count()).isEqualTo(2);
181181
map.setThrowException(true);
182+
map.put("key3", "value3");
183+
assertThat(adapter.stream().count()).isEqualTo(3);
182184
}
183185

186+
@Test
184187
public void originTrackedMapPropertySourceKeyAdditionInvalidatesCache() {
185188
// gh-13344
186189
Map<String, Object> map = new LinkedHashMap<>();
@@ -194,6 +197,7 @@ public void originTrackedMapPropertySourceKeyAdditionInvalidatesCache() {
194197
assertThat(adapter.stream().count()).isEqualTo(3);
195198
}
196199

200+
@Test
197201
public void readOnlyOriginTrackedMapPropertySourceKeyAdditionDoesNotInvalidateCache() {
198202
// gh-16717
199203
Map<String, Object> map = new LinkedHashMap<>();

0 commit comments

Comments
 (0)