comparison UnitTestsSources/ServerIndexTests.cpp @ 1236:21d84e3acc0d

clean
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 05 Dec 2014 14:53:30 +0100
parents efece308018e
children 0f3716b88af7
comparison
equal deleted inserted replaced
1235:9b4977e3c19d 1236:21d84e3acc0d
266 ASSERT_EQ(ResourceType_Study, t); 266 ASSERT_EQ(ResourceType_Study, t);
267 267
268 ASSERT_TRUE(index_->LookupMetadata(s, a[4], MetadataType_Instance_RemoteAet)); 268 ASSERT_TRUE(index_->LookupMetadata(s, a[4], MetadataType_Instance_RemoteAet));
269 ASSERT_FALSE(index_->LookupMetadata(s, a[4], MetadataType_Instance_IndexInSeries)); 269 ASSERT_FALSE(index_->LookupMetadata(s, a[4], MetadataType_Instance_IndexInSeries));
270 ASSERT_EQ("PINNACLE", s); 270 ASSERT_EQ("PINNACLE", s);
271 ASSERT_EQ("PINNACLE", index_->GetMetadata(a[4], MetadataType_Instance_RemoteAet)); 271 ASSERT_EQ("PINNACLE", index_->GetMetadata(a[4], MetadataType_Instance_RemoteAet, ""));
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);