Mercurial > hg > orthanc
diff UnitTestsSources/ServerIndexTests.cpp @ 1238:6c07108ff1e2
cleaning
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 05 Dec 2014 16:14:57 +0100 |
parents | 0f3716b88af7 |
children | 92c6b3b57699 |
line wrap: on
line diff
--- a/UnitTestsSources/ServerIndexTests.cpp Fri Dec 05 15:33:16 2014 +0100 +++ b/UnitTestsSources/ServerIndexTests.cpp Fri Dec 05 16:14:57 2014 +0100 @@ -268,8 +268,11 @@ ASSERT_TRUE(index_->LookupMetadata(s, a[4], MetadataType_Instance_RemoteAet)); ASSERT_FALSE(index_->LookupMetadata(s, a[4], MetadataType_Instance_IndexInSeries)); ASSERT_EQ("PINNACLE", s); - ASSERT_EQ("PINNACLE", index_->GetMetadata(a[4], MetadataType_Instance_RemoteAet, "")); - ASSERT_EQ("None", index_->GetMetadata(a[4], MetadataType_Instance_IndexInSeries, "None")); + + std::string u; + ASSERT_TRUE(index_->LookupMetadata(u, a[4], MetadataType_Instance_RemoteAet)); + ASSERT_EQ("PINNACLE", u); + ASSERT_FALSE(index_->LookupMetadata(u, a[4], MetadataType_Instance_IndexInSeries)); ASSERT_TRUE(index_->LookupGlobalProperty(s, GlobalProperty_FlushSleep)); ASSERT_FALSE(index_->LookupGlobalProperty(s, static_cast<GlobalProperty>(42)));