Skip to content

Commit 5a51351

Browse files
committed
Relax test assertion when Jacoco is enabled
This commit changes the resolveMethod to take a method name as instrumentation may add additional methods to the test object. Issue: SPR-15888
1 parent 9abe776 commit 5a51351

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/ResponseBodyResultHandlerTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public void supports() throws NoSuchMethodException {
8383
method = on(TestController.class).annotPresent(ResponseBody.class).resolveMethod();
8484
testSupports(controller, method);
8585

86-
method = on(TestController.class).annotNotPresent(ResponseBody.class).resolveMethod();
86+
method = on(TestController.class).annotNotPresent(ResponseBody.class).resolveMethod("doWork");
8787
HandlerResult handlerResult = getHandlerResult(controller, method);
8888
assertFalse(this.resultHandler.supports(handlerResult));
8989
}

0 commit comments

Comments
 (0)