1 17 package org.apache.servicemix.components.xslt; 18 19 import org.apache.servicemix.tck.TestSupport; 20 import org.springframework.context.support.AbstractXmlApplicationContext; 21 import org.apache.xbean.spring.context.ClassPathXmlApplicationContext; 22 23 import javax.xml.namespace.QName ; 24 25 28 public class XsltRouterTest extends TestSupport { 29 30 public void testUseXsltAsRouter() throws Exception { 31 QName service = new QName ("http://servicemix.org/cheese/", "transformer"); 32 33 sendMessages(service, 20); 34 assertMessagesReceived(17); 35 } 36 37 protected AbstractXmlApplicationContext createBeanFactory() { 38 return new ClassPathXmlApplicationContext("org/apache/servicemix/components/xslt/router-example.xml"); 39 } 40 } 41 | Popular Tags |