Mercurial > hg > orthanc
diff OrthancServer/UnitTestsSources/UnitTestsMain.cpp @ 4504:7d1eabfac6e0
removed cached dicom-as-json from DicomInstanceToStore
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 10 Feb 2021 11:29:53 +0100 |
parents | d9473bd5ed43 |
children | 8f9090b137f1 |
line wrap: on
line diff
--- a/OrthancServer/UnitTestsSources/UnitTestsMain.cpp Tue Feb 09 17:05:45 2021 +0100 +++ b/OrthancServer/UnitTestsSources/UnitTestsMain.cpp Wed Feb 10 11:29:53 2021 +0100 @@ -250,8 +250,11 @@ DicomInstanceToStore toStore; toStore.SetParsedDicomFile(dicom); + Json::Value dicomAsJson; + OrthancConfiguration::DefaultDicomDatasetToJson(dicomAsJson, toStore.GetParsedDicomFile()); + DicomMap m; - m.FromDicomAsJson(toStore.GetJson()); + m.FromDicomAsJson(dicomAsJson); ASSERT_EQ("ISO_IR 100", m.GetValue(DICOM_TAG_SPECIFIC_CHARACTER_SET).GetContent());