From 7ff5598c5c3acb995fdf03ef41557b75f050f37b Mon Sep 17 00:00:00 2001 From: Andrew Donald Kennedy Date: Tue, 27 Jul 2010 16:31:45 +0000 Subject: 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 --- .../org/apache/qpid/server/logging/AbstractTestLogging.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'java') 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); } -- cgit v1.2.1