summaryrefslogtreecommitdiff
path: root/qpid/java
diff options
context:
space:
mode:
authorAndrew Donald Kennedy <grkvlt@apache.org>2010-07-27 16:31:45 +0000
committerAndrew Donald Kennedy <grkvlt@apache.org>2010-07-27 16:31:45 +0000
commit42a53a8bf749bec58c1a89d91eae1037d1fe3bf6 (patch)
tree0c72631d4aedb5b1d1ec49fe8de8c27a2f62bffd /qpid/java
parent4e0f5c1b7b1261857a39da9ce33c6c7332e74a04 (diff)
downloadqpid-python-42a53a8bf749bec58c1a89d91eae1037d1fe3bf6.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@979767 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java')
-rw-r--r--qpid/java/systests/src/main/java/org/apache/qpid/server/logging/AbstractTestLogging.java13
1 files changed, 12 insertions, 1 deletions
diff --git a/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/AbstractTestLogging.java b/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/AbstractTestLogging.java
index 5bdc337013..54b8029d9a 100644
--- a/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/AbstractTestLogging.java
+++ b/qpid/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);
}