1 18 package org.apache.activemq.filter; 19 20 import org.apache.activemq.SpringTestSupport; 21 import org.apache.activemq.command.ActiveMQTopic; 22 import org.springframework.context.support.AbstractApplicationContext; 23 import org.springframework.context.support.ClassPathXmlApplicationContext; 24 25 import java.util.Set ; 26 27 31 public class DummyPolicyTest extends SpringTestSupport { 32 33 public void testPolicy() throws Exception { 34 DummyPolicy policy = (DummyPolicy) getBean("policy"); 35 36 Set set = policy.get(new ActiveMQTopic("FOO.BAR")); 37 38 assertSetEquals("FOO.BAR set", new Object [] { "Edam", "Cheddar" }, set); 39 } 40 41 protected AbstractApplicationContext createApplicationContext() { 42 return new ClassPathXmlApplicationContext("org/apache/activemq/filter/dummyPolicy.xml"); 44 } 45 46 } 47 | Popular Tags |