diff options
| author | Martin Ritchie <ritchiem@apache.org> | 2010-05-07 15:12:45 +0000 |
|---|---|---|
| committer | Martin Ritchie <ritchiem@apache.org> | 2010-05-07 15:12:45 +0000 |
| commit | 6977fe13e998cdfcb70bebde25329d0eeaac64cc (patch) | |
| tree | bcecb83a3ff613aca9c0f1bf8f682ee896a201c4 /java/broker | |
| parent | eda130ca19e2666fb46a81e0ae7238852996eebc (diff) | |
| download | qpid-python-6977fe13e998cdfcb70bebde25329d0eeaac64cc.tar.gz | |
QPID-2583 : Update tests to correctly throw ConfigurationException where requried and to correctly configure configuration
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@942110 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/broker')
| -rw-r--r-- | java/broker/src/test/java/org/apache/qpid/server/queue/MockAMQQueue.java | 5 | ||||
| -rw-r--r-- | java/broker/src/test/java/org/apache/qpid/server/util/InternalBrokerBaseCase.java | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/java/broker/src/test/java/org/apache/qpid/server/queue/MockAMQQueue.java b/java/broker/src/test/java/org/apache/qpid/server/queue/MockAMQQueue.java index f02b1f435f..1314a6e9d3 100644 --- a/java/broker/src/test/java/org/apache/qpid/server/queue/MockAMQQueue.java +++ b/java/broker/src/test/java/org/apache/qpid/server/queue/MockAMQQueue.java @@ -518,6 +518,11 @@ public class MockAMQQueue implements AMQQueue } + public QueueConfiguration getConfiguration() + { + return null; //To change body of implemented methods use File | Settings | File Templates. + } + public PrincipalHolder getPrincipalHolder() { return _principalHolder; diff --git a/java/broker/src/test/java/org/apache/qpid/server/util/InternalBrokerBaseCase.java b/java/broker/src/test/java/org/apache/qpid/server/util/InternalBrokerBaseCase.java index 88178041ca..e3c43779f6 100644 --- a/java/broker/src/test/java/org/apache/qpid/server/util/InternalBrokerBaseCase.java +++ b/java/broker/src/test/java/org/apache/qpid/server/util/InternalBrokerBaseCase.java @@ -59,6 +59,7 @@ public class InternalBrokerBaseCase extends TestCase { super.setUp(); PropertiesConfiguration configuration = new PropertiesConfiguration(); + configuration.setProperty("virtualhosts.virtualhost.name", "test"); configuration.setProperty("virtualhosts.virtualhost.test.store.class", TestableMemoryMessageStore.class.getName()); _registry = new TestApplicationRegistry(new ServerConfiguration(configuration)); ApplicationRegistry.initialise(_registry); |
