[ 
https://issues.apache.org/jira/browse/AMQNET-565?focusedWorklogId=274358&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-274358
 ]

ASF GitHub Bot logged work on AMQNET-565:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 09/Jul/19 20:29
            Start Date: 09/Jul/19 20:29
    Worklog Time Spent: 10m 
      Work Description: killnine commented on pull request #9: [AMQNET-565] - 
.net standard conversion, project reorganization
URL: 
https://github.com/apache/activemq-nms-openwire/pull/9#discussion_r301779502
 
 

 ##########
 File path: test/NMSConnectionFactoryTest.cs
 ##########
 @@ -89,6 +68,56 @@ public void TestURI(string connectionURI)
                        }
                }
 
+        [TestCase("activemq:tcp://${activemqhost}:61616/InvalidHost:0")]
+               [TestCase("activemq:tcp://${activemqhost}:61616/0.0.0.0:-1")]
+               [TestCase("tcp://InvalidHost:61616")]
+               [TestCase("activemq:tcp://InvalidHost:61616")]
+               
[TestCase("activemq:tcp://InvalidHost:61616?connection.asyncclose=false")]
+
+               
[TestCase("tcp://${activemqhost}:61616?connection.InvalidParameter=true")]
+               
[TestCase("activemq:tcp://${activemqhost}:61616?connection.InvalidParameter=true")]
+               
[TestCase("activemq:failover:tcp://${activemqhost}:61616?connection.InvalidParameter=true")]
+               
[TestCase("activemq:failover:(tcp://${activemqhost}:61616)?connection.InvalidParameter=true")]
+               
[TestCase("activemq:failover:(tcp://${activemqhost}:61616,tcp://${activemqbackuphost}:61616)?connection.InvalidParameter=true")]
+
+               [TestCase("ftp://${activemqhost}:61616";)]
+               [TestCase("http://${activemqhost}:61616";)]
+               [TestCase("discovery://${activemqhost}:6155")]
+               [TestCase("sms://${activemqhost}:61616")]
+               [TestCase("activemq:multicast://${activemqhost}:6155")]
+               
[TestCase("activemq:(tcp://${activemqhost}:61616)?connection.asyncClose=false")]
+        public void TestURIFailures_NMSConnectionException(string 
connectionURI)
+        {
+            Assert.Throws<NMSConnectionException>(() =>
+            {
+                NMSConnectionFactory factory = new 
NMSConnectionFactory(NMSTestSupport.ReplaceEnvVar(connectionURI));
+                Assert.IsNotNull(factory);
+                Assert.IsNotNull(factory.ConnectionFactory);
+                using(IConnection connection = factory.CreateConnection("", 
""))
+                {
+                    Assert.IsNotNull(connection);
+                    connection.Close();
+                }
+            });
+        }
+
+        [TestCase("(tcp://${activemqhost}:61616,tcp://${activemqhost}:61616)")]
+        [TestCase("tcp://${activemqhost}:61616,tcp://${activemqhost}:61616")]
+        public void TestURIFailures_UriFormatException(string connectionURI)
 
 Review comment:
   Because `ExpectedException` was deprecated in NUnit3, I split up these tests 
from the ones above. They expect a different exception to be thrown and it was 
easier to break them up than re-create the ExpectedException logic in the 
`[TestCase]` attribute.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 274358)
    Time Spent: 4.5h  (was: 4h 20m)

> Dotnet core port 
> -----------------
>
>                 Key: AMQNET-565
>                 URL: https://issues.apache.org/jira/browse/AMQNET-565
>             Project: ActiveMQ .Net
>          Issue Type: New Feature
>          Components: ActiveMQ
>            Reporter: Wojtek Kulma
>            Priority: Major
>          Time Spent: 4.5h
>  Remaining Estimate: 0h
>
> Apache.NMS.ActiveMQ should be ported for dotnet core. 
> For now the following error is rises:
> D:\RiderProjects\syncro [master ≡ +1 ~1 -1 !]> dotnet add package 
> Apache.NMS.ActiveMQ
> Microsoft (R) Build Engine version 15.1.1012.6693
> Copyright (C) Microsoft Corporation. All rights reserved.
>   Writing C:\Users\wkulma\AppData\Local\Temp\tmp9A2E.tmp
> info : Adding PackageReference for package 'Apache.NMS.ActiveMQ' into project 
> 'D:\RiderProjects\syncro\syncro.fsproj'.
> log  : Restoring packages for D:\RiderProjects\syncro\syncro.fsproj...
> info :   GET 
> https://api.nuget.org/v3-flatcontainer/apache.nms.activemq/index.json
> info :   CACHE https://api.nuget.org/v3-flatcontainer/fsharp.core/index.json
> info :   CACHE 
> https://api.nuget.org/v3-flatcontainer/fsharp.core/4.1.17/fsharp.core.4.1.17.nupkg
> info :   CACHE 
> https://api.nuget.org/v3-flatcontainer/fsharp.net.sdk/index.json
> info :   CACHE 
> https://api.nuget.org/v3-flatcontainer/fsharp.net.sdk/1.0.5/fsharp.net.sdk.1.0.5.nupkg
> info :   OK 
> https://api.nuget.org/v3-flatcontainer/apache.nms.activemq/index.json 611ms
> info :   GET 
> https://api.nuget.org/v3-flatcontainer/apache.nms.activemq/1.7.2/apache.nms.activemq.1.7.2.nupkg
> info :   OK 
> https://api.nuget.org/v3-flatcontainer/apache.nms.activemq/1.7.2/apache.nms.activemq.1.7.2.nupkg
>  481ms
> error: Package Apache.NMS.ActiveMQ 1.7.2 is not compatible with netcoreapp1.1 
> (.NETCoreApp,Version=v1.1). Package Apache.NMS.ActiveMQ 1.7.2 supports:
> error:   - net20 (.NETFramework,Version=v2.0)
> error:   - net35 (.NETFramework,Version=v3.5)
> error:   - net40 (.NETFramework,Version=v4.0)
> error: Package Apache.NMS 1.7.1 is not compatible with netcoreapp1.1 
> (.NETCoreApp,Version=v1.1). Package Apache.NMS 1.7.1 supports:
> error:   - net20 (.NETFramework,Version=v2.0)
> error:   - net20-cf (.NETFramework,Version=v2.0,Profile=CompactFramework)
> error:   - net35 (.NETFramework,Version=v3.5)
> error:   - net40 (.NETFramework,Version=v4.0)
> error: One or more packages are incompatible with .NETCoreApp,Version=v1.1.
> error: Package 'Apache.NMS.ActiveMQ' is incompatible with 'all' frameworks in 
> project 'D:\RiderProjects\syncro\syncro.fsproj'.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to