diff options
author | Steven Shaw <steshaw@apache.org> | 2006-12-19 22:49:08 +0000 |
---|---|---|
committer | Steven Shaw <steshaw@apache.org> | 2006-12-19 22:49:08 +0000 |
commit | 3f3cc0ed82983667b8c46f2452c395bd3bc7ea75 (patch) | |
tree | 0dc3201239c8b546c60c3ebd6d1373b2a31f3b90 | |
parent | 3e419078289fe68e4629e1dde57384277394eef0 (diff) | |
download | qpid-python-3f3cc0ed82983667b8c46f2452c395bd3bc7ea75.tar.gz |
Fixed warning.
FailoverTxTest now using connection URI for configuration.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@488844 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | dotnet/Qpid.Client.Tests/failover/FailoverTxTest.cs | 47 | ||||
-rw-r--r-- | dotnet/Qpid.Client/Client/Handler/ConnectionRedirectMethodHandler.cs | 2 |
2 files changed, 20 insertions, 29 deletions
diff --git a/dotnet/Qpid.Client.Tests/failover/FailoverTxTest.cs b/dotnet/Qpid.Client.Tests/failover/FailoverTxTest.cs index 0829b62e39..b2eecfc423 100644 --- a/dotnet/Qpid.Client.Tests/failover/FailoverTxTest.cs +++ b/dotnet/Qpid.Client.Tests/failover/FailoverTxTest.cs @@ -215,42 +215,33 @@ namespace Qpid.Client.Tests.failover _log.Info("failoverComplete() called"); } - [Test] +// [Test] public void TestWithBasicInfo() { Console.WriteLine("TestWithBasicInfo"); Console.WriteLine(".NET Framework version: " + RuntimeEnvironment.GetSystemVersion()); -// try -// { - QpidConnectionInfo connectionInfo = new QpidConnectionInfo(); - - connectionInfo.AddBrokerInfo(new AmqBrokerInfo("amqp", "localhost", 5672, false)); - connectionInfo.AddBrokerInfo(new AmqBrokerInfo("amqp", "localhost", 5673, false)); - - DoFailoverTxTest(connectionInfo); -// } -// catch (Exception e) -// { -// _log.Error("Exception caught", e); -// } + QpidConnectionInfo connectionInfo = new QpidConnectionInfo(); + + connectionInfo.AddBrokerInfo(new AmqBrokerInfo("amqp", "localhost", 5672, false)); + connectionInfo.AddBrokerInfo(new AmqBrokerInfo("amqp", "localhost", 5673, false)); + + DoFailoverTxTest(connectionInfo); } - //[Test] - //public void runTestWithUrl() - //{ - // try { - // String clientId = "failover" + DateTime.Now.Ticks; - // string defaultUrl = "amqp://guest:guest@" + clientId + "/test" + - // "?brokerlist='tcp://localhost:5672;tcp://localhost:5673'&failover='roundrobin'"; + [Test] + public void runTestWithUrl() + { + String clientId = "failover" + DateTime.Now.Ticks; + string defaultUrl = "amqp://guest:guest@" + clientId + "/test" + + "?brokerlist='tcp://localhost:5672;tcp://localhost:5673'&failover='roundrobin'"; + + _log.Info("url = [" + defaultUrl + "]"); - // _log.Info("url = [" + defaultUrl + "]"); + ConnectionInfo connectionInfo = QpidConnectionInfo.FromUrl(defaultUrl); - // _log.Info("connection url = [" + new AMQConnectionInfo(defaultUrl) + "]"); + _log.Info("connection url = [" + connectionInfo + "]"); - // DoFailoverTxTest(new AMQConnectionInfo(defaultUrl)); - // } catch (Exception e) { - // _log.Error("test failed", e); - // } - //} + DoFailoverTxTest(connectionInfo); + } } } diff --git a/dotnet/Qpid.Client/Client/Handler/ConnectionRedirectMethodHandler.cs b/dotnet/Qpid.Client/Client/Handler/ConnectionRedirectMethodHandler.cs index 4437290f5c..0639d66028 100644 --- a/dotnet/Qpid.Client/Client/Handler/ConnectionRedirectMethodHandler.cs +++ b/dotnet/Qpid.Client/Client/Handler/ConnectionRedirectMethodHandler.cs @@ -26,7 +26,7 @@ namespace Qpid.Client.Handler { public class ConnectionRedirectMethodHandler : IStateAwareMethodListener { - private static readonly ILog _logger = LogManager.GetLogger(typeof(ConnectionRedirectMethodHandler)); +// private static readonly ILog _logger = LogManager.GetLogger(typeof(ConnectionRedirectMethodHandler)); private const int DEFAULT_REDIRECT_PORT = 5672; |