1 17 package org.apache.servicemix.components.jabber; 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 JabberChatTest extends TestSupport { 29 30 public void testSendMessagesToJmsThenOutofJmsToReceiver() throws Exception { 31 QName service = new QName ("http://servicemix.org/cheese/", "myJabberSender"); 32 33 assertSendAndReceiveMessages(service); 34 } 35 36 protected AbstractXmlApplicationContext createBeanFactory() { 37 return new ClassPathXmlApplicationContext("org/apache/servicemix/components/jabber/example.xml"); 38 } 39 } 40 | Popular Tags |