Commit 199606da authored by Phillip Webb's avatar Phillip Webb

Merge pull request #17069 from izeye

* pr/17069:
  Add missing @Test annotations

Closes gh-17069
parents 1d5647b9 3b3a92c5
...@@ -179,8 +179,11 @@ class SpringIterableConfigurationPropertySourceTests { ...@@ -179,8 +179,11 @@ class SpringIterableConfigurationPropertySourceTests {
DefaultPropertyMapper.INSTANCE); DefaultPropertyMapper.INSTANCE);
assertThat(adapter.stream().count()).isEqualTo(2); assertThat(adapter.stream().count()).isEqualTo(2);
map.setThrowException(true); map.setThrowException(true);
map.put("key3", "value3");
assertThat(adapter.stream().count()).isEqualTo(3);
} }
@Test
public void originTrackedMapPropertySourceKeyAdditionInvalidatesCache() { public void originTrackedMapPropertySourceKeyAdditionInvalidatesCache() {
// gh-13344 // gh-13344
Map<String, Object> map = new LinkedHashMap<>(); Map<String, Object> map = new LinkedHashMap<>();
...@@ -194,6 +197,7 @@ class SpringIterableConfigurationPropertySourceTests { ...@@ -194,6 +197,7 @@ class SpringIterableConfigurationPropertySourceTests {
assertThat(adapter.stream().count()).isEqualTo(3); assertThat(adapter.stream().count()).isEqualTo(3);
} }
@Test
public void readOnlyOriginTrackedMapPropertySourceKeyAdditionDoesNotInvalidateCache() { public void readOnlyOriginTrackedMapPropertySourceKeyAdditionDoesNotInvalidateCache() {
// gh-16717 // gh-16717
Map<String, Object> map = new LinkedHashMap<>(); Map<String, Object> map = new LinkedHashMap<>();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment