qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From grk...@apache.org
Subject svn commit: r979999 - /qpid/trunk/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/AbstractTestLogging.java
Date Wed, 28 Jul 2010 09:08:00 GMT
Author: grkvlt
Date: Wed Jul 28 09:07:59 2010
New Revision: 979999

URL: http://svn.apache.org/viewvc?rev=979999&view=rev
Log:
QPID-2763: Record old store class name.

This fixes the MemoryMessageStoreLoggingTest where a check is made for the
broker store class name.

Modified:
    qpid/trunk/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/AbstractTestLogging.java

Modified: qpid/trunk/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/AbstractTestLogging.java
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/AbstractTestLogging.java?rev=979999&r1=979998&r2=979999&view=diff
==============================================================================
--- qpid/trunk/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/AbstractTestLogging.java
(original)
+++ qpid/trunk/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/AbstractTestLogging.java
Wed Jul 28 09:07:59 2010
@@ -71,11 +71,18 @@ public class AbstractTestLogging extends
                     _configuration = _serverConfiguration;
                     _registry = new TestApplicationRegistry(_configuration)
                     {
+                        /**
+                         * Create a virtualhost with a {@link SkeletonMessageStore} instead
+                         * of the configured one, but remember the original configuration.
+                         */
                         @Override
                         public VirtualHost createVirtualHost(final VirtualHostConfiguration
vhostConfig) throws Exception
                         {
+                            String oldClass = vhostConfig.getMessageStoreClass();
                             vhostConfig.setMessageStoreClass(SkeletonMessageStore.class.getName());
-                            return super.createVirtualHost(vhostConfig);
+                            VirtualHost host = super.createVirtualHost(vhostConfig);
+                            vhostConfig.setMessageStoreClass(oldClass);
+                            return host;
                         }
                     };
                     ApplicationRegistry.initialise(_registry);



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


Mime
View raw message