diff UnitTestsSources/ServerIndexTests.cpp @ 2190:3b9ee145f149

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 29 Nov 2016 19:29:12 +0100
parents 84d1d392a9ab
children 90ea60bee5ff
line wrap: on
line diff
--- a/UnitTestsSources/ServerIndexTests.cpp	Tue Nov 29 16:07:14 2016 +0100
+++ b/UnitTestsSources/ServerIndexTests.cpp	Tue Nov 29 19:29:12 2016 +0100
@@ -798,9 +798,13 @@
     DicomInstanceToStore toStore;
     toStore.SetSummary(instance);
     ASSERT_EQ(StoreStatus_Success, index.Store(instanceMetadata, toStore, attachments));
-    ASSERT_EQ(3u, instanceMetadata.size());
+    ASSERT_EQ(4u, instanceMetadata.size());
     ASSERT_TRUE(instanceMetadata.find(MetadataType_Instance_RemoteAet) != instanceMetadata.end());
     ASSERT_TRUE(instanceMetadata.find(MetadataType_Instance_ReceptionDate) != instanceMetadata.end());
+    ASSERT_TRUE(instanceMetadata.find(MetadataType_Instance_TransferSyntax) != instanceMetadata.end());
+
+    // By default, an Explicit VR Little Endian is used by Orthanc
+    ASSERT_EQ("1.2.840.10008.1.2.1", instanceMetadata[MetadataType_Instance_TransferSyntax]);
 
     DicomInstanceHasher hasher(instance);
     ids.push_back(hasher.HashPatient());