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
commit0b5bd8ea17cae9034bde8ad02d9cf80b2dde30f9 (patch)
treeed754b8432979f48f9223c9d01675be2e54e2b02
parent092bc25334915b7a8a4cd9f8c4d0f2c84df3bbbd (diff)
downloadqpid-python-0b5bd8ea17cae9034bde8ad02d9cf80b2dde30f9.tar.gz
Switch BaseMessagingTestFixture to use connection uri.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@486789 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--dotnet/Qpid.Client.Tests/Common/BaseMessagingTestFixture.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/dotnet/Qpid.Client.Tests/Common/BaseMessagingTestFixture.cs b/dotnet/Qpid.Client.Tests/Common/BaseMessagingTestFixture.cs
index a5085ee199..e27174909c 100644
--- a/dotnet/Qpid.Client.Tests/Common/BaseMessagingTestFixture.cs
+++ b/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);
}