mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
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
This commit is contained in:
+1
-1
@@ -83,7 +83,7 @@ public class ResponseBodyResultHandlerTests {
|
||||
method = on(TestController.class).annotPresent(ResponseBody.class).resolveMethod();
|
||||
testSupports(controller, method);
|
||||
|
||||
method = on(TestController.class).annotNotPresent(ResponseBody.class).resolveMethod();
|
||||
method = on(TestController.class).annotNotPresent(ResponseBody.class).resolveMethod("doWork");
|
||||
HandlerResult handlerResult = getHandlerResult(controller, method);
|
||||
assertFalse(this.resultHandler.supports(handlerResult));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user