diff options
| author | Keith Wall <kwall@apache.org> | 2012-03-30 13:44:25 +0000 |
|---|---|---|
| committer | Keith Wall <kwall@apache.org> | 2012-03-30 13:44:25 +0000 |
| commit | d5de3f9bab0bf8a13e3e738a053ad03b4fae496c (patch) | |
| tree | c4e3c6ca2699ffb25c3f06d5182c366fb1363f49 /java/common/src | |
| parent | 333902e7561d9bb4291d2685e84221edebb92bb6 (diff) | |
| download | qpid-python-d5de3f9bab0bf8a13e3e738a053ad03b4fae496c.tar.gz | |
QPID-3917: Refactor VirtualHost/MessageStore implementations to be ready for BDB-HA
Applied patch from Andrew MacBean <andymacbean@gmail.com> and myself.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1307416 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/common/src')
| -rw-r--r-- | java/common/src/test/java/org/apache/qpid/test/utils/QpidTestCase.java | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/java/common/src/test/java/org/apache/qpid/test/utils/QpidTestCase.java b/java/common/src/test/java/org/apache/qpid/test/utils/QpidTestCase.java index ee9556f1f0..0668120b72 100644 --- a/java/common/src/test/java/org/apache/qpid/test/utils/QpidTestCase.java +++ b/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<String> _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 ; } |
