diff options
| author | Alex Rudyy <orudyy@apache.org> | 2014-06-26 08:25:56 +0000 |
|---|---|---|
| committer | Alex Rudyy <orudyy@apache.org> | 2014-06-26 08:25:56 +0000 |
| commit | 73e49b5fc7ebcb9235265f648dbb7f3cc522752a (patch) | |
| tree | 99f4ee00bde4037d7289ef2a6efb39f9090052ba /qpid/java/qpid-test-utils/src/main | |
| parent | 0b2d26c6f3107946a2e83d764aad9c08eea57d0c (diff) | |
| download | qpid-python-73e49b5fc7ebcb9235265f648dbb7f3cc522752a.tar.gz | |
QPID-5851: [Java Broker] Introduce new test profiles for JSON configuration store and persistent message store
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1605697 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/qpid-test-utils/src/main')
| -rw-r--r-- | qpid/java/qpid-test-utils/src/main/java/org/apache/qpid/test/utils/QpidTestCase.java | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/qpid/java/qpid-test-utils/src/main/java/org/apache/qpid/test/utils/QpidTestCase.java b/qpid/java/qpid-test-utils/src/main/java/org/apache/qpid/test/utils/QpidTestCase.java index ca80ad09c2..5a3c0182fd 100644 --- a/qpid/java/qpid-test-utils/src/main/java/org/apache/qpid/test/utils/QpidTestCase.java +++ b/qpid/java/qpid-test-utils/src/main/java/org/apache/qpid/test/utils/QpidTestCase.java @@ -35,12 +35,13 @@ import junit.framework.TestResult; import org.apache.log4j.Level; import org.apache.log4j.Logger; - public class QpidTestCase extends TestCase { private static final String TEST_EXCLUDES = "test.excludes"; private static final String TEST_EXCLUDELIST = "test.excludelist"; private static final String TEST_EXCLUDEFILES = "test.excludefiles"; + private static final String VIRTUAL_HOST_NODE_TYPE = "virtualhostnode.type"; + private static final String VIRTUAL_HOST_NODE_CONTEXT_BLUEPRINT = "virtualhostnode.context.blueprint"; public static final String QPID_HOME = System.getProperty("QPID_HOME"); public static final String TEST_RESOURCES_DIR = QPID_HOME + "/../test-profiles/test_resources/"; public static final String TEST_PROFILES_DIR = QPID_HOME + "/../test-profiles/"; @@ -124,8 +125,6 @@ public class QpidTestCase extends TestCase } } - protected static final String MESSAGE_STORE_TYPE = "messagestore.type"; - private static List<String> _exclusionList; public QpidTestCase() @@ -148,17 +147,21 @@ public class QpidTestCase extends TestCase } } - public String getTestProfileMessageStoreType() + public String getTestProfileVirtualHostNodeType() { - final String storeType = System.getProperty(MESSAGE_STORE_TYPE); - _logger.debug(MESSAGE_STORE_TYPE + "=" + storeType); + final String storeType = System.getProperty(VIRTUAL_HOST_NODE_TYPE); + + if (_logger.isDebugEnabled()) + { + _logger.debug(VIRTUAL_HOST_NODE_TYPE + "=" + storeType); + } return storeType != null ? storeType : "TestMemory"; } - public String getTestProfileVirtualHostNodeType() + public String getTestProfileVirtualHostNodeBlueprint() { - return getTestProfileMessageStoreType(); + return System.getProperty(VIRTUAL_HOST_NODE_CONTEXT_BLUEPRINT); } public static final int MIN_PORT_NUMBER = 1; |
