[
https://issues.apache.org/jira/browse/AMQNET-565?focusedWorklogId=274356&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-274356
]
ASF GitHub Bot logged work on AMQNET-565:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 09/Jul/19 20:27
Start Date: 09/Jul/19 20:27
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_r301778703
##########
File path: test/DtcBasicTransactionsTest.cs
##########
@@ -1,101 +1,101 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-using System;
-using System.Threading;
-using Apache.NMS.ActiveMQ.Transactions;
-using NUnit.Framework;
-
-namespace Apache.NMS.ActiveMQ.Test
-{
- [TestFixture]
- [Category("Manual")]
- class DtcBasicTransactionsTest : DtcTransactionsTestSupport
- {
- [SetUp]
- public override void SetUp()
- {
- base.SetUp();
-
- this.dtcFactory = new
NetTxConnectionFactory(ReplaceEnvVar(connectionURI));
- this.dtcFactory.ConfiguredResourceManagerId =
Guid.NewGuid().ToString();
- }
-
- [Test]
- [ExpectedException("Apache.NMS.NMSException")]
- public void TestSessionCreateFailsWithInvalidLogLocation()
- {
- using (INetTxConnection connection =
dtcFactory.CreateNetTxConnection())
- {
- connection.ExceptionListener += this.OnException;
- connection.Start();
-
- NetTxConnection con = connection as NetTxConnection;
- NetTxRecoveryPolicy policy = con.RecoveryPolicy;
- (policy.RecoveryLogger as RecoveryFileLogger).Location =
nonExistantPath;
- connection.CreateNetTxSession();
- }
- }
-
- [Test]
- public void TestTransactedDBReadAndProduce()
- {
- // Test initialize - Fills in DB with data to send.
- PrepareDatabase();
-
- using (INetTxConnection connection =
dtcFactory.CreateNetTxConnection())
- {
- connection.ExceptionListener += this.OnException;
- connection.Start();
-
- ReadFromDbAndProduceToQueueWithCommit(connection);
-
- Thread.Sleep(2000);
- }
-
- // verify sql server has commited the transaction
- VerifyDatabaseTableIsEmpty();
-
- // check messages are present in the queue
- VerifyBrokerQueueCount();
- }
-
- [Test]
- public void TestTransacteDequeueAndDbWrite()
- {
- // Test initialize - Fills in DB with data to send.
- PurgeDatabase();
- PurgeAndFillQueue();
-
- using (INetTxConnection connection =
dtcFactory.CreateNetTxConnection())
- {
- connection.ExceptionListener += this.OnException;
- connection.Start();
-
- ReadFromQueueAndInsertIntoDbWithCommit(connection);
-
- Thread.Sleep(2000);
- }
-
- // verify sql server has commited the transaction and stored all
messages
- VerifyDatabaseTableIsFull();
-
- // check no messages are present in the queue after commit.
- VerifyNoMessagesInQueueNoRecovery();
- }
- }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+using System;
+using System.Threading;
+using Apache.NMS.ActiveMQ.Transactions;
+using NUnit.Framework;
+
+namespace Apache.NMS.ActiveMQ.Test
+{
+ [TestFixture]
+ [Category("Manual")]
+ class DtcBasicTransactionsTest : DtcTransactionsTestSupport
+ {
+ [SetUp]
+ public override void SetUp()
+ {
+ base.SetUp();
+
+ this.dtcFactory = new
NetTxConnectionFactory(ReplaceEnvVar(connectionURI));
+ this.dtcFactory.ConfiguredResourceManagerId =
Guid.NewGuid().ToString();
+ }
+
+ [Test]
+ [ExpectedException(typeof(NMSException))]
Review comment:
Magic strings removed.
----------------------------------------------------------------
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: 274356)
Time Spent: 4h 10m (was: 4h)
> 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: 4h 10m
> 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)