changeset 706:2d829ea1db96

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 13 Feb 2014 12:46:39 +0100
parents a9cff2c077d4
children 203157cb4fde
files UnitTestsSources/ServerIndex.cpp
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/UnitTestsSources/ServerIndex.cpp	Thu Feb 13 11:54:00 2014 +0100
+++ b/UnitTestsSources/ServerIndex.cpp	Thu Feb 13 12:46:39 2014 +0100
@@ -520,6 +520,8 @@
   ServerContext context(path, ":memory:");
   ServerIndex& index = context.GetIndex();
   
+  index.SetMaximumStorageSize(10);
+
   Json::Value tmp;
   index.ComputeStatistics(tmp);
   ASSERT_EQ(0, tmp["PatientCount"].asInt());
@@ -527,9 +529,9 @@
   ServerIndex::Attachments attachments;
 
   DicomMap instance;
-  m.SetValue(DICOM_TAG_PATIENT_ID, "patient1");
-  m.SetValue(DICOM_TAG_STUDY_INSTANCE_UID, "study1");
-  m.SetValue(DICOM_TAG_SERIES_INSTANCE_UID, "series1");
-  m.SetValue(DICOM_TAG_SOP_INSTANCE_UID, "instance1");
+  instance.SetValue(DICOM_TAG_PATIENT_ID, "patient1");
+  instance.SetValue(DICOM_TAG_STUDY_INSTANCE_UID, "study1");
+  instance.SetValue(DICOM_TAG_SERIES_INSTANCE_UID, "series1");
+  instance.SetValue(DICOM_TAG_SOP_INSTANCE_UID, "instance1");
   ASSERT_EQ(StoreStatus_Success, index.Store(instance, attachments, ""));
 }