/** Returns a list of all incoming endpoints on a service. */ protected List getIncomingEndpoints() { List endpoints = new ArrayList(); // Add inbound endpoints endpoints.addAll(inboundRouter.getEndpoints()); // Add response endpoints if (responseRouter != null && responseRouter.getEndpoints() != null) { endpoints.addAll(responseRouter.getEndpoints()); } return endpoints; }
public void testPropertyExtractorResponseRouterConfig() throws Exception { Service d = muleContext.getRegistry().lookupService("propertyExtractorResponseRouterTestComponent"); assertNotNull(d); ResponseRouterCollection router = d.getResponseRouter(); assertNotNull(router); List routers = router.getRouters(); assertNotNull(routers); assertEquals(1, routers.size()); AbstractResponseRouter theRouter = (AbstractResponseRouter) routers.get(0); // the one we put in the config assertTrue(theRouter.getPropertyExtractor() instanceof FunctionExpressionEvaluator); }