diff options
author | Andrew Donald Kennedy <grkvlt@apache.org> | 2010-07-27 16:31:45 +0000 |
---|---|---|
committer | Andrew Donald Kennedy <grkvlt@apache.org> | 2010-07-27 16:31:45 +0000 |
commit | 7ff5598c5c3acb995fdf03ef41557b75f050f37b (patch) | |
tree | 8a69fc339d6e3e3562cf29bcdc4c27c3f2ebc19c | |
parent | f144fc8e9508cec7418096161ecbd2ef94858a5e (diff) | |
download | qpid-python-7ff5598c5c3acb995fdf03ef41557b75f050f37b.tar.gz |
QPID-2763: Alerting tests do not need to create a message store
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@979767 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | java/systests/src/main/java/org/apache/qpid/server/logging/AbstractTestLogging.java | 13 |
1 files changed, 12 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 5bdc337013..54b8029d9a 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 @@ -21,12 +21,15 @@ package org.apache.qpid.server.logging; import org.apache.qpid.server.configuration.ServerConfiguration; +import org.apache.qpid.server.configuration.VirtualHostConfiguration; import org.apache.qpid.server.logging.actors.CurrentActor; import org.apache.qpid.server.logging.actors.TestLogActor; import org.apache.qpid.server.logging.subjects.AbstractTestLogSubject; import org.apache.qpid.server.registry.ApplicationRegistry; +import org.apache.qpid.server.store.SkeletonMessageStore; import org.apache.qpid.server.util.InternalBrokerBaseCase; import org.apache.qpid.server.util.TestApplicationRegistry; +import org.apache.qpid.server.virtualhost.VirtualHost; import org.apache.qpid.test.utils.QpidBrokerTestCase; import org.apache.qpid.util.LogMonitor; @@ -66,7 +69,15 @@ public class AbstractTestLogging extends QpidBrokerTestCase _serverConfiguration.getConfig().setProperty(ServerConfiguration.STATUS_UPDATES, "off"); _configuration = _serverConfiguration; - _registry = new TestApplicationRegistry(_configuration); + _registry = new TestApplicationRegistry(_configuration) + { + @Override + public VirtualHost createVirtualHost(final VirtualHostConfiguration vhostConfig) throws Exception + { + vhostConfig.setMessageStoreClass(SkeletonMessageStore.class.getName()); + return super.createVirtualHost(vhostConfig); + } + }; ApplicationRegistry.initialise(_registry); } |