Mercurial > hg > orthanc
comparison UnitTestsSources/ServerIndexTests.cpp @ 1218:efece308018e
report database version in /system
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 06 Nov 2014 15:58:13 +0100 |
parents | 1169528a9a5f |
children | 21d84e3acc0d |
comparison
equal
deleted
inserted
replaced
1217:92ba9c7b431f | 1218:efece308018e |
---|---|
272 ASSERT_EQ("None", index_->GetMetadata(a[4], MetadataType_Instance_IndexInSeries, "None")); | 272 ASSERT_EQ("None", index_->GetMetadata(a[4], MetadataType_Instance_IndexInSeries, "None")); |
273 | 273 |
274 ASSERT_TRUE(index_->LookupGlobalProperty(s, GlobalProperty_FlushSleep)); | 274 ASSERT_TRUE(index_->LookupGlobalProperty(s, GlobalProperty_FlushSleep)); |
275 ASSERT_FALSE(index_->LookupGlobalProperty(s, static_cast<GlobalProperty>(42))); | 275 ASSERT_FALSE(index_->LookupGlobalProperty(s, static_cast<GlobalProperty>(42))); |
276 ASSERT_EQ("World", s); | 276 ASSERT_EQ("World", s); |
277 ASSERT_EQ("World", index_->GetGlobalProperty(GlobalProperty_FlushSleep)); | 277 ASSERT_EQ("World", index_->GetGlobalProperty(GlobalProperty_FlushSleep, "")); |
278 ASSERT_EQ("None", index_->GetGlobalProperty(static_cast<GlobalProperty>(42), "None")); | 278 ASSERT_EQ("None", index_->GetGlobalProperty(static_cast<GlobalProperty>(42), "None")); |
279 | 279 |
280 FileInfo att; | 280 FileInfo att; |
281 ASSERT_TRUE(index_->LookupAttachment(att, a[4], FileContentType_DicomAsJson)); | 281 ASSERT_TRUE(index_->LookupAttachment(att, a[4], FileContentType_DicomAsJson)); |
282 ASSERT_EQ("my json file", att.GetUuid()); | 282 ASSERT_EQ("my json file", att.GetUuid()); |