提交 5a51351f 编写于 作者: S Stephane Nicoll

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
上级 9abe7767
......@@ -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));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册