From 38d1f36fe4238a887f867350adaa56489e53e0e6 Mon Sep 17 00:00:00 2001 From: Keith Wall Date: Fri, 30 Mar 2012 13:44:25 +0000 Subject: QPID-3917: Refactor VirtualHost/MessageStore implementations to be ready for BDB-HA Applied patch from Andrew MacBean and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1307416 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/qpid/test/utils/QpidTestCase.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'qpid/java/common') diff --git a/qpid/java/common/src/test/java/org/apache/qpid/test/utils/QpidTestCase.java b/qpid/java/common/src/test/java/org/apache/qpid/test/utils/QpidTestCase.java index ee9556f1f0..0668120b72 100644 --- a/qpid/java/common/src/test/java/org/apache/qpid/test/utils/QpidTestCase.java +++ b/qpid/java/common/src/test/java/org/apache/qpid/test/utils/QpidTestCase.java @@ -108,10 +108,10 @@ public class QpidTestCase extends TestCase _exclusionList = exclusionList; } } - - protected static final String MS_CLASS_NAME_KEY = "messagestore.class.name"; - protected static final String MEMORY_STORE_CLASS_NAME = "org.apache.qpid.server.store.MemoryMessageStore"; - + + protected static final String MS_FACTORY_CLASS_NAME_KEY = "messagestorefactory.class.name"; + protected static final String MEMORY_STORE_FACTORY_CLASS_NAME = "org.apache.qpid.server.store.MemoryMessageStoreFactory"; + private static List _exclusionList; public QpidTestCase() @@ -139,11 +139,12 @@ public class QpidTestCase extends TestCase } } - public String getTestProfileMessageStoreClassName() + public String getTestProfileMessageStoreFactoryClassName() { - String storeClass = System.getProperty(MS_CLASS_NAME_KEY); + final String storeFactoryClass = System.getProperty(MS_FACTORY_CLASS_NAME_KEY); + _logger.debug("MS_FACTORY_CLASS_NAME_KEY " + storeFactoryClass); - return storeClass != null ? storeClass : MEMORY_STORE_CLASS_NAME ; + return storeFactoryClass != null ? storeFactoryClass : MEMORY_STORE_FACTORY_CLASS_NAME ; } -- cgit v1.2.1