Skip to content

Commit 1e0a3a9

Browse files
committed
Fix binding random properties test
See gh-26201
1 parent ba5b36d commit 1e0a3a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,7 @@ void loadWhenBoundToRandomPropertyPlaceholder() {
10671067
MutablePropertySources sources = this.context.getEnvironment().getPropertySources();
10681068
sources.addFirst(new RandomValuePropertySource());
10691069
Map<String, Object> source = new HashMap<>();
1070-
source.put("com.example.bar", "${random.int}");
1070+
source.put("com.example.bar", "${random.int[100,200]}");
10711071
sources.addLast(new MapPropertySource("test", source));
10721072
load(SimplePrefixedProperties.class);
10731073
SimplePrefixedProperties bean = this.context.getBean(SimplePrefixedProperties.class);

0 commit comments

Comments
 (0)