Commit 1e0a3a94 authored by Phillip Webb's avatar Phillip Webb

Fix binding random properties test

See gh-26201
parent ba5b36d7
...@@ -1067,7 +1067,7 @@ class ConfigurationPropertiesTests { ...@@ -1067,7 +1067,7 @@ class ConfigurationPropertiesTests {
MutablePropertySources sources = this.context.getEnvironment().getPropertySources(); MutablePropertySources sources = this.context.getEnvironment().getPropertySources();
sources.addFirst(new RandomValuePropertySource()); sources.addFirst(new RandomValuePropertySource());
Map<String, Object> source = new HashMap<>(); Map<String, Object> source = new HashMap<>();
source.put("com.example.bar", "${random.int}"); source.put("com.example.bar", "${random.int[100,200]}");
sources.addLast(new MapPropertySource("test", source)); sources.addLast(new MapPropertySource("test", source));
load(SimplePrefixedProperties.class); load(SimplePrefixedProperties.class);
SimplePrefixedProperties bean = this.context.getBean(SimplePrefixedProperties.class); SimplePrefixedProperties bean = this.context.getBean(SimplePrefixedProperties.class);
......
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