Mercurial > hg > orthanc
diff UnitTestsSources/ServerIndexTests.cpp @ 1822:9ed9458aa44f
refactoring
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 25 Nov 2015 10:06:50 +0100 |
parents | 9ead18ef460a |
children | 0ef4e6e66b56 |
line wrap: on
line diff
--- a/UnitTestsSources/ServerIndexTests.cpp Tue Nov 24 17:46:32 2015 +0100 +++ b/UnitTestsSources/ServerIndexTests.cpp Wed Nov 25 10:06:50 2015 +0100 @@ -796,8 +796,9 @@ instance.SetValue(DICOM_TAG_SOP_INSTANCE_UID, "instance-" + id); std::map<MetadataType, std::string> instanceMetadata; - ServerIndex::MetadataMap metadata; - ASSERT_EQ(StoreStatus_Success, index.Store(instanceMetadata, instance, attachments, "", metadata)); + DicomInstanceToStore toStore; + toStore.SetSummary(instance); + ASSERT_EQ(StoreStatus_Success, index.Store(instanceMetadata, toStore, attachments)); ASSERT_EQ(2u, instanceMetadata.size()); ASSERT_TRUE(instanceMetadata.find(MetadataType_Instance_RemoteAet) != instanceMetadata.end()); ASSERT_TRUE(instanceMetadata.find(MetadataType_Instance_ReceptionDate) != instanceMetadata.end());