summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Shaw <steshaw@apache.org>2006-12-13 18:38:31 +0000
committerSteven Shaw <steshaw@apache.org>2006-12-13 18:38:31 +0000
commit8e57b17ef47e371e833462da9b3aaf6d60410789 (patch)
tree55ba9534039130d03576ec016ab2ec8ff0aac649
parent436af716ffaedf6e05aa5204be3cf06259a5ee31 (diff)
downloadqpid-python-8e57b17ef47e371e833462da9b3aaf6d60410789.tar.gz
Switch BaseMessagingTestFixture to use connection uri.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@486789 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--qpid/dotnet/Qpid.Client.Tests/Common/BaseMessagingTestFixture.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/qpid/dotnet/Qpid.Client.Tests/Common/BaseMessagingTestFixture.cs b/qpid/dotnet/Qpid.Client.Tests/Common/BaseMessagingTestFixture.cs
index a5085ee199..e27174909c 100644
--- a/qpid/dotnet/Qpid.Client.Tests/Common/BaseMessagingTestFixture.cs
+++ b/qpid/dotnet/Qpid.Client.Tests/Common/BaseMessagingTestFixture.cs
@@ -22,6 +22,7 @@ using System;
using log4net;
using NUnit.Framework;
using Qpid.Messaging;
+using Qpid.Client.qms;
namespace Qpid.Client.Tests
{
@@ -29,6 +30,8 @@ namespace Qpid.Client.Tests
{
private static ILog _logger = LogManager.GetLogger(typeof(BaseMessagingTestFixture));
+ const string connectionUri = "amqp://guest:guest@default/test?brokerlist='tcp://localhost:5672'";
+
protected IConnection _connection;
protected IChannel _channel;
@@ -38,9 +41,7 @@ namespace Qpid.Client.Tests
{
try
{
- QpidConnectionInfo connectionInfo = new QpidConnectionInfo();
-
- connectionInfo.AddBrokerInfo(new AmqBrokerInfo("amqp", "localhost", 5672, false));
+ ConnectionInfo connectionInfo = QpidConnectionInfo.FromUrl(connectionUri);
_connection = new AMQConnection(connectionInfo);
_channel = _connection.CreateChannel(false, AcknowledgeMode.NoAcknowledge, 1);
}