You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by gr...@apache.org on 2010/07/28 11:08:00 UTC
svn commit: r979999 -
/qpid/trunk/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/AbstractTestLogging.java
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