示例响应处理程序:
private static void handleGetRequest(RoutingContext ctx) {
final HttpServerResponse response = ctx.response;
try {
A a = B.getSomeA();
a.handleSomething();
}
catch (Exception ex) {System.out.println(ex);}
}
我们如何通过在处理程序中模拟对象来对上述处理程序进行单元测试?