@Test(dataProvider = "messages-1") public void testSync(WxMpXmlMessage message, String expected) { StringBuffer sb = new StringBuffer(); WxMpMessageRouter router = new WxMpMessageRouter(null); prepare(false, sb, router); router.route(message); Assert.assertEquals(sb.toString(), expected); }
public WxMpXmlOutMessage route(final WxMpXmlMessage wxMessage, final Map<String, Object> context) { return route(wxMessage, context, null); }
WxMpMessageRouter { public WxMpXmlOutMessage route(final WxMpXmlMessage wxMessage, final Map<String, Object> context) { return route(wxMessage, context, null); } }
WxMpMessageRouter { public WxMpXmlOutMessage route(final WxMpXmlMessage wxMessage, final Map<String, Object> context) { return route(wxMessage, context, null); } WxMpMessageRouter(WxMpService wxMpService);  WxMpMessageRouter(WxMpService wxMpService, ExecutorService executorService); }
WxMpMessageRouter { public WxMpXmlOutMessage route(final WxMpXmlMessage wxMessage, final Map<String, Object> context) { return route(wxMessage, context, null); } WxMpMessageRouter(WxMpService wxMpService);  WxMpMessageRouter(WxMpService wxMpService, ExecutorService executorService); void shutDownExecutorService(); void setExecutorService(ExecutorService executorService); void setMessageDuplicateChecker(WxMessageDuplicateChecker messageDuplicateChecker); void setSessionManager(WxSessionManager sessionManager); void setExceptionHandler(WxErrorExceptionHandler exceptionHandler); WxMpMessageRouterRule rule(); WxMpXmlOutMessage route(final WxMpXmlMessage wxMessage, final Map<String, Object> context); WxMpXmlOutMessage route(final WxMpXmlMessage wxMessage, final Map<String, Object> context, WxMpService wxMpService); WxMpXmlOutMessage route(final WxMpXmlMessage wxMessage); }
WxMpMessageRouter { public WxMpXmlOutMessage route(final WxMpXmlMessage wxMessage, final Map<String, Object> context) { return route(wxMessage, context, null); } WxMpMessageRouter(WxMpService wxMpService);  WxMpMessageRouter(WxMpService wxMpService, ExecutorService executorService); void shutDownExecutorService(); void setExecutorService(ExecutorService executorService); void setMessageDuplicateChecker(WxMessageDuplicateChecker messageDuplicateChecker); void setSessionManager(WxSessionManager sessionManager); void setExceptionHandler(WxErrorExceptionHandler exceptionHandler); WxMpMessageRouterRule rule(); WxMpXmlOutMessage route(final WxMpXmlMessage wxMessage, final Map<String, Object> context); WxMpXmlOutMessage route(final WxMpXmlMessage wxMessage, final Map<String, Object> context, WxMpService wxMpService); WxMpXmlOutMessage route(final WxMpXmlMessage wxMessage);  }