This commit is contained in:
Phillip Webb
2019-06-11 09:23:50 -07:00
parent 199606da4e
commit 08dbb2d8c4

View File

@@ -163,9 +163,9 @@ class SpringIterableConfigurationPropertySourceTests {
EnumerablePropertySource<?> source = new MapPropertySource("test", map);
SpringIterableConfigurationPropertySource adapter = new SpringIterableConfigurationPropertySource(source,
DefaultPropertyMapper.INSTANCE);
assertThat(adapter.stream().count()).isEqualTo(2);
assertThat(adapter.stream()).hasSize(2);
map.put("key3", "value3");
assertThat(adapter.stream().count()).isEqualTo(3);
assertThat(adapter.stream()).hasSize(3);
}
@Test
@@ -177,10 +177,10 @@ class SpringIterableConfigurationPropertySourceTests {
EnumerablePropertySource<?> source = new MapPropertySource("test", map);
SpringIterableConfigurationPropertySource adapter = new SpringIterableConfigurationPropertySource(source,
DefaultPropertyMapper.INSTANCE);
assertThat(adapter.stream().count()).isEqualTo(2);
assertThat(adapter.stream()).hasSize(2);
map.setThrowException(true);
map.put("key3", "value3");
assertThat(adapter.stream().count()).isEqualTo(3);
assertThat(adapter.stream()).hasSize(3);
}
@Test
@@ -192,9 +192,9 @@ class SpringIterableConfigurationPropertySourceTests {
EnumerablePropertySource<?> source = new OriginTrackedMapPropertySource("test", map);
SpringIterableConfigurationPropertySource adapter = new SpringIterableConfigurationPropertySource(source,
DefaultPropertyMapper.INSTANCE);
assertThat(adapter.stream().count()).isEqualTo(2);
assertThat(adapter.stream()).hasSize(2);
map.put("key3", "value3");
assertThat(adapter.stream().count()).isEqualTo(3);
assertThat(adapter.stream()).hasSize(3);
}
@Test
@@ -206,9 +206,9 @@ class SpringIterableConfigurationPropertySourceTests {
EnumerablePropertySource<?> source = new OriginTrackedMapPropertySource("test", map, true);
SpringIterableConfigurationPropertySource adapter = new SpringIterableConfigurationPropertySource(source,
DefaultPropertyMapper.INSTANCE);
assertThat(adapter.stream().count()).isEqualTo(2);
assertThat(adapter.stream()).hasSize(2);
map.put("key3", "value3");
assertThat(adapter.stream().count()).isEqualTo(2);
assertThat(adapter.stream()).hasSize(2);
}
/**