Skip to content

Commit 8e93b9f

Browse files
committed
Start building against Spring Framework 6.2.0-M6 snapshots
See gh-41555
1 parent 3648f5f commit 8e93b9f

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ junitJupiterVersion=5.10.3
1414
kotlinVersion=1.9.24
1515
mavenVersion=3.9.4
1616
nativeBuildToolsVersion=0.10.2
17-
springFrameworkVersion=6.2.0-M5
17+
springFrameworkVersion=6.2.0-SNAPSHOT
1818
springFramework60xVersion=6.0.21
1919
tomcatVersion=10.1.26
2020
snakeYamlVersion=2.2

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/reactive/error/DefaultErrorAttributesTests.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,10 @@ void extractMethodValidationResultErrors() throws Exception {
282282
MethodParameter parameter = new MethodParameter(method, 0);
283283
MethodValidationResult methodValidationResult = MethodValidationResult.create(target, method,
284284
List.of(new ParameterValidationResult(parameter, -1,
285-
List.of(new ObjectError("beginIndex", "beginIndex is negative")), null, null, null)));
285+
List.of(new ObjectError("beginIndex", "beginIndex is negative")), null, null, null,
286+
(error, sourceType) -> {
287+
throw new IllegalArgumentException("No source object of the given type");
288+
})));
286289
HandlerMethodValidationException ex = new HandlerMethodValidationException(methodValidationResult);
287290
MockServerHttpRequest request = MockServerHttpRequest.get("/test").build();
288291
Map<String, Object> attributes = this.errorAttributes.getErrorAttributes(buildServerRequest(request, ex),

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/servlet/error/DefaultErrorAttributesTests.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,10 @@ void withHandlerMethodValidationExceptionBindingErrors() {
215215
MethodParameter parameter = new MethodParameter(method, 0);
216216
MethodValidationResult methodValidationResult = MethodValidationResult.create(target, method,
217217
List.of(new ParameterValidationResult(parameter, -1,
218-
List.of(new ObjectError("beginIndex", "beginIndex is negative")), null, null, null)));
218+
List.of(new ObjectError("beginIndex", "beginIndex is negative")), null, null, null,
219+
(error, sourceType) -> {
220+
throw new IllegalArgumentException("No source object of the given type");
221+
})));
219222
HandlerMethodValidationException ex = new HandlerMethodValidationException(methodValidationResult);
220223
testErrors(methodValidationResult.getAllErrors(),
221224
"Validation failed for method='public java.lang.String java.lang.String.substring(int)'. Error count: 1",

0 commit comments

Comments
 (0)