1 18 package org.apache.activemq.config; 19 20 import junit.framework.TestCase; 21 import org.apache.activemq.broker.BrokerFactory; 22 import org.apache.activemq.broker.BrokerService; 23 import org.apache.commons.logging.Log; 24 import org.apache.commons.logging.LogFactory; 25 26 29 public class BrokerPropertiesTest extends TestCase { 30 private static final transient Log log = LogFactory.getLog(BrokerPropertiesTest.class); 31 32 public void testPropertiesFile() throws Exception { 33 BrokerService broker = BrokerFactory.createBroker("properties:org/apache/activemq/config/broker.properties"); 34 35 log.info("Created broker: " + broker); 36 assertNotNull(broker); 37 38 assertEquals("isUseJmx()", false, broker.isUseJmx()); 39 assertEquals("isPersistent()", false, broker.isPersistent()); 40 assertEquals("getBrokerName()", "Cheese", broker.getBrokerName()); 41 } 42 } 43 | Popular Tags |