diff UnitTestsSources/MultiThreadingTests.cpp @ 3602:085283445db0 storage-commitment

AllowNAction in remote modality parameters
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 16 Jan 2020 15:28:32 +0100
parents bdafff1ce443
children c1e2b91c2ab4
line wrap: on
line diff
--- a/UnitTestsSources/MultiThreadingTests.cpp	Thu Jan 16 12:50:06 2020 +0100
+++ b/UnitTestsSources/MultiThreadingTests.cpp	Thu Jan 16 15:28:32 2020 +0100
@@ -1897,6 +1897,7 @@
     ASSERT_TRUE(modality.IsRequestAllowed(DicomRequestType_Get));
     ASSERT_TRUE(modality.IsRequestAllowed(DicomRequestType_Store));
     ASSERT_TRUE(modality.IsRequestAllowed(DicomRequestType_Move));
+    ASSERT_TRUE(modality.IsRequestAllowed(DicomRequestType_NAction));
   }
 
   s = Json::nullValue;
@@ -1925,6 +1926,7 @@
     ASSERT_TRUE(modality.IsRequestAllowed(DicomRequestType_Get));
     ASSERT_TRUE(modality.IsRequestAllowed(DicomRequestType_Store));
     ASSERT_TRUE(modality.IsRequestAllowed(DicomRequestType_Move));
+    ASSERT_TRUE(modality.IsRequestAllowed(DicomRequestType_NAction));
   }
 
   s["Port"] = "46";
@@ -1944,8 +1946,9 @@
   operations.insert(DicomRequestType_Get);
   operations.insert(DicomRequestType_Move);
   operations.insert(DicomRequestType_Store);
+  operations.insert(DicomRequestType_NAction);
 
-  ASSERT_EQ(5u, operations.size());
+  ASSERT_EQ(6u, operations.size());
 
   for (std::set<DicomRequestType>::const_iterator 
          it = operations.begin(); it != operations.end(); ++it)