Mercurial > hg > orthanc
comparison UnitTestsSources/ServerIndexTests.cpp @ 1239:92c6b3b57699
cleaning
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 05 Dec 2014 16:22:18 +0100 |
parents | 6c07108ff1e2 |
children | 90d2f320862d |
comparison
equal
deleted
inserted
replaced
1238:6c07108ff1e2 | 1239:92c6b3b57699 |
---|---|
275 ASSERT_FALSE(index_->LookupMetadata(u, a[4], MetadataType_Instance_IndexInSeries)); | 275 ASSERT_FALSE(index_->LookupMetadata(u, a[4], MetadataType_Instance_IndexInSeries)); |
276 | 276 |
277 ASSERT_TRUE(index_->LookupGlobalProperty(s, GlobalProperty_FlushSleep)); | 277 ASSERT_TRUE(index_->LookupGlobalProperty(s, GlobalProperty_FlushSleep)); |
278 ASSERT_FALSE(index_->LookupGlobalProperty(s, static_cast<GlobalProperty>(42))); | 278 ASSERT_FALSE(index_->LookupGlobalProperty(s, static_cast<GlobalProperty>(42))); |
279 ASSERT_EQ("World", s); | 279 ASSERT_EQ("World", s); |
280 ASSERT_EQ("World", index_->GetGlobalProperty(GlobalProperty_FlushSleep, "")); | |
281 ASSERT_EQ("None", index_->GetGlobalProperty(static_cast<GlobalProperty>(42), "None")); | |
282 | 280 |
283 FileInfo att; | 281 FileInfo att; |
284 ASSERT_TRUE(index_->LookupAttachment(att, a[4], FileContentType_DicomAsJson)); | 282 ASSERT_TRUE(index_->LookupAttachment(att, a[4], FileContentType_DicomAsJson)); |
285 ASSERT_EQ("my json file", att.GetUuid()); | 283 ASSERT_EQ("my json file", att.GetUuid()); |
286 ASSERT_EQ(21u, att.GetCompressedSize()); | 284 ASSERT_EQ(21u, att.GetCompressedSize()); |