1 17 package org.apache.servicemix.components.drools; 18 19 import javax.xml.namespace.QName ; 20 21 import org.springframework.context.support.AbstractXmlApplicationContext; 22 23 26 public class DroolsWithJbiRulesForwardTest extends DroolsTest { 27 28 public void testFiringRules() throws Exception { 29 QName service = new QName ("http://servicemix.org/cheese/", "droolsRouter"); 30 31 sendMessages(service, 3); 32 assertMessagesReceived(4); 33 } 34 35 protected AbstractXmlApplicationContext createBeanFactory() { 36 return new org.apache.xbean.spring.context.ClassPathXmlApplicationContext("org/apache/servicemix/components/drools/jbi-example-forward.xml"); 37 } 38 } 39 | Popular Tags |