mirror of https://github.com/apache/activemq.git
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:
parent
281fd8ded0
commit
e614534e72
|
@ -48,6 +48,8 @@ public class XBeanConfigTest extends TestCase {
|
|||
|
||||
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"));
|
||||
DispatchPolicy dispatchPolicy = topic.getDispatchPolicy();
|
||||
|
@ -77,6 +79,7 @@ public class XBeanConfigTest extends TestCase {
|
|||
}
|
||||
|
||||
protected void setUp() throws Exception {
|
||||
System.setProperty("brokername", "testbroker");
|
||||
brokerService = createBroker();
|
||||
broker = brokerService.getBroker();
|
||||
|
||||
|
|
Loading…
Reference in New Issue