alibaba / jvm-sandbox-repeater

A Java server-side recording and playback solution based on JVM-Sandbox
Apache License 2.0
2.53k stars 702 forks source link

一些不能mock的场景,请问是暂不支持还是我使用错误 #198

Open ydzhao-reyes opened 1 year ago

ydzhao-reyes commented 1 year ago

1.对于onRequest,onResponse在入参里面的不能进行子调用mock,序列化失败,比如: public void scroll(ScrollRequest scrollRequest, HttpServletRequest request, HttpServletResponse response) 2.异步调用的同理 3.直接传参可以mock成功 return greetingService.greeting(String.format(template, name)); 这样不行 return greetingService.greeting(counter.incrementAndGet(),String.format(template, name)); 调用失败的结果如下 Console一直在执行中 image

后台序列化报错 image

配置如下 image