Added assertion to test that system properties can be used to configure broker settings.

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@385690 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hiram R. Chirino 2006-03-13 22:56:45 +00:00
parent 281fd8ded0
commit e614534e72
1 changed files with 3 additions and 0 deletions

View File

@ -48,6 +48,8 @@ public class XBeanConfigTest extends TestCase {
public void testBrokerConfiguredCorrectly() throws Exception { public void testBrokerConfiguredCorrectly() throws Exception {
// Validate the system properties are being evaluated in xbean.
assertEquals("testbroker", brokerService.getBrokerName());
Topic topic = (Topic) broker.addDestination(context, new ActiveMQTopic("FOO.BAR")); Topic topic = (Topic) broker.addDestination(context, new ActiveMQTopic("FOO.BAR"));
DispatchPolicy dispatchPolicy = topic.getDispatchPolicy(); DispatchPolicy dispatchPolicy = topic.getDispatchPolicy();
@ -77,6 +79,7 @@ public class XBeanConfigTest extends TestCase {
} }
protected void setUp() throws Exception { protected void setUp() throws Exception {
System.setProperty("brokername", "testbroker");
brokerService = createBroker(); brokerService = createBroker();
broker = brokerService.getBroker(); broker = brokerService.getBroker();