summaryrefslogtreecommitdiff
path: root/qpid/java/systests/src
diff options
context:
space:
mode:
authorAlex Rudyy <orudyy@apache.org>2013-05-22 11:41:53 +0000
committerAlex Rudyy <orudyy@apache.org>2013-05-22 11:41:53 +0000
commita4c2ad8da3d30a1bde3e2053e3d3d08ac814aa2b (patch)
tree5afe46880fb0197cb358a64b533f65493f661bdd /qpid/java/systests/src
parentc8e54a76117dba84f0456ec1a2bfac4428df440a (diff)
downloadqpid-python-a4c2ad8da3d30a1bde3e2053e3d3d08ac814aa2b.tar.gz
QPID-4876: Throw an exception when virtual host configuration is not found in virtual host file
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1485163 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/systests/src')
-rw-r--r--qpid/java/systests/src/main/java/org/apache/qpid/systest/rest/VirtualHostRestTest.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/qpid/java/systests/src/main/java/org/apache/qpid/systest/rest/VirtualHostRestTest.java b/qpid/java/systests/src/main/java/org/apache/qpid/systest/rest/VirtualHostRestTest.java
index 1e49351323..1823b59ba3 100644
--- a/qpid/java/systests/src/main/java/org/apache/qpid/systest/rest/VirtualHostRestTest.java
+++ b/qpid/java/systests/src/main/java/org/apache/qpid/systest/rest/VirtualHostRestTest.java
@@ -128,7 +128,7 @@ public class VirtualHostRestTest extends QpidRestTestCase
public void testPutCreateVirtualHostUsingConfigPath() throws Exception
{
- String hostName = getTestName();
+ String hostName = getName();
File configFile = TestFileUtils.createTempFile(this, hostName + "-config.xml");
String configPath = configFile.getAbsolutePath();
String storeLocation = getStoreLocation(hostName);
@@ -575,9 +575,9 @@ public class VirtualHostRestTest extends QpidRestTestCase
throws ConfigurationException
{
XMLConfiguration testConfiguration = new XMLConfiguration();
- testConfiguration.setProperty("virtualhosts.virtualhost." + hostName + ".store.class",
+ testConfiguration.setProperty("virtualhost." + hostName + ".store.class",
getTestProfileMessageStoreClassName());
- testConfiguration.setProperty("virtualhosts.virtualhost." + hostName + ".store.environment-path", storeLocation);
+ testConfiguration.setProperty("virtualhost." + hostName + ".store.environment-path", storeLocation);
testConfiguration.save(configFile);
return testConfiguration;
}