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