You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ri...@apache.org on 2010/06/02 18:45:03 UTC

svn commit: r950648 - /qpid/trunk/qpid/java/broker/src/test/java/org/apache/qpid/server/util/InternalBrokerBaseCase.java

Author: ritchiem
Date: Wed Jun  2 16:45:03 2010
New Revision: 950648

URL: http://svn.apache.org/viewvc?rev=950648&view=rev
Log:
QPID-2632 : Update to ensure multiple virtualhosts are actually added, required move to XMLConfiguration from PropertyConfiguration

Modified:
    qpid/trunk/qpid/java/broker/src/test/java/org/apache/qpid/server/util/InternalBrokerBaseCase.java

Modified: qpid/trunk/qpid/java/broker/src/test/java/org/apache/qpid/server/util/InternalBrokerBaseCase.java
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/broker/src/test/java/org/apache/qpid/server/util/InternalBrokerBaseCase.java?rev=950648&r1=950647&r2=950648&view=diff
==============================================================================
--- qpid/trunk/qpid/java/broker/src/test/java/org/apache/qpid/server/util/InternalBrokerBaseCase.java (original)
+++ qpid/trunk/qpid/java/broker/src/test/java/org/apache/qpid/server/util/InternalBrokerBaseCase.java Wed Jun  2 16:45:03 2010
@@ -22,6 +22,7 @@ package org.apache.qpid.server.util;
 
 import junit.framework.TestCase;
 import org.apache.commons.configuration.PropertiesConfiguration;
+import org.apache.commons.configuration.XMLConfiguration;
 import org.apache.qpid.AMQException;
 import org.apache.qpid.common.AMQPFilterTypes;
 import org.apache.qpid.exchange.ExchangeDefaults;
@@ -69,12 +70,12 @@ public class InternalBrokerBaseCase exte
     {
         CurrentActor.set(new TestLogActor(new StartupRootMessageLogger()));
 
-        PropertiesConfiguration configuration = new PropertiesConfiguration();
-        configuration.setProperty("virtualhosts.virtualhost.name", "test");
-        configuration.setProperty("virtualhosts.virtualhost.test.store.class", TestableMemoryMessageStore.class.getName());
+        XMLConfiguration configuration = new XMLConfiguration();
+        configuration.addProperty("virtualhosts.virtualhost.name", "test");
+        configuration.addProperty("virtualhosts.virtualhost.test.store.class", TestableMemoryMessageStore.class.getName());
         
-        configuration.setProperty("virtualhosts.virtualhost.name", getName());
-        configuration.setProperty("virtualhosts.virtualhost."+getName()+".store.class", TestableMemoryMessageStore.class.getName());
+        configuration.addProperty("virtualhosts.virtualhost(-1).name", getName());
+        configuration.addProperty("virtualhosts.virtualhost(-1)."+getName()+".store.class", TestableMemoryMessageStore.class.getName());
 
         _configuration = new ServerConfiguration(configuration);
 



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org