comparison UnitTestsSources/ServerIndexTests.cpp @ 1029:9e04f9f36096

fix windows build
author jodogne
date Thu, 10 Jul 2014 13:54:00 +0200
parents 649d47854314
children 66fa947c7280
comparison
equal deleted inserted replaced
1028:20ccb7e2bc09 1029:9e04f9f36096
582 582
583 std::map<MetadataType, std::string> instanceMetadata; 583 std::map<MetadataType, std::string> instanceMetadata;
584 ServerIndex::MetadataMap metadata; 584 ServerIndex::MetadataMap metadata;
585 ASSERT_EQ(StoreStatus_Success, index.Store(instanceMetadata, instance, attachments, "", metadata)); 585 ASSERT_EQ(StoreStatus_Success, index.Store(instanceMetadata, instance, attachments, "", metadata));
586 ASSERT_EQ(2, instanceMetadata.size()); 586 ASSERT_EQ(2, instanceMetadata.size());
587 ASSERT_NE(instanceMetadata.end(), instanceMetadata.find(MetadataType_Instance_RemoteAet)); 587 ASSERT_TRUE(instanceMetadata.find(MetadataType_Instance_RemoteAet) != instanceMetadata.end());
588 ASSERT_NE(instanceMetadata.end(), instanceMetadata.find(MetadataType_Instance_ReceptionDate)); 588 ASSERT_TRUE(instanceMetadata.find(MetadataType_Instance_ReceptionDate) != instanceMetadata.end());
589 589
590 DicomInstanceHasher hasher(instance); 590 DicomInstanceHasher hasher(instance);
591 ids.push_back(hasher.HashPatient()); 591 ids.push_back(hasher.HashPatient());
592 ids.push_back(hasher.HashStudy()); 592 ids.push_back(hasher.HashStudy());
593 ids.push_back(hasher.HashSeries()); 593 ids.push_back(hasher.HashSeries());