diff options
author | Andrew Donald Kennedy <grkvlt@apache.org> | 2010-07-28 09:07:59 +0000 |
---|---|---|
committer | Andrew Donald Kennedy <grkvlt@apache.org> | 2010-07-28 09:07:59 +0000 |
commit | 47e34ceb982bc7885cf34227c84b993a17bb1b01 (patch) | |
tree | 2f79fa9b9122130b152183a999d523180bf02c60 | |
parent | 9a8d11bc80ca37e674acffbbfbf4e1f5ff85a38b (diff) | |
download | qpid-python-47e34ceb982bc7885cf34227c84b993a17bb1b01.tar.gz |
QPID-2763: Record old store class name.
This fixes the MemoryMessageStoreLoggingTest where a check is made for the
broker store class name.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@979999 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | java/systests/src/main/java/org/apache/qpid/server/logging/AbstractTestLogging.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/java/systests/src/main/java/org/apache/qpid/server/logging/AbstractTestLogging.java b/java/systests/src/main/java/org/apache/qpid/server/logging/AbstractTestLogging.java index 54b8029d9a..816720e581 100644 --- a/java/systests/src/main/java/org/apache/qpid/server/logging/AbstractTestLogging.java +++ b/java/systests/src/main/java/org/apache/qpid/server/logging/AbstractTestLogging.java @@ -71,11 +71,18 @@ public class AbstractTestLogging extends QpidBrokerTestCase _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); |