26 CPPUNIT_TEST_SUITE(mitkPropertyNameHelperTestSuite);
32 CPPUNIT_TEST_SUITE_END();
36 std::string oldStudyName;
37 std::string oldSeriesName;
43 oldSeriesName =
"dicom.study.SeriesDescription";
44 oldStudyName =
"dicom.study.StudyDescription";
46 _propList->SetStringProperty(oldSeriesName.c_str(),
"old_series");
49 _propList->SetStringProperty(oldStudyName.c_str(),
"old_study");
52 void tearDown()
override {}
57 "Testing GeneratePropertyNameForDICOMTag(mitk::DICOMTag(0x0018, 0x0080)");
61 "Testing GeneratePropertyNameForDICOMTag(mitk::DICOMTag(0x0008, 0x001a)");
66 std::string result =
"";
68 CPPUNIT_ASSERT_MESSAGE(
"Testing GetBackwardsCompatibleDICOMProperty. Only deprecated name is existing.", check);
69 CPPUNIT_ASSERT_MESSAGE(
"Testing returned property value. Only deprecated name is existing.", result ==
"old_study");
72 CPPUNIT_ASSERT_MESSAGE(
"Testing GetBackwardsCompatibleDICOMProperty. Only deprecated name does not exist.", check);
73 CPPUNIT_ASSERT_MESSAGE(
"Testing returned property value. Only deprecated name is existing.",
74 result ==
"new_series");
77 CPPUNIT_ASSERT_MESSAGE(
"Testing GetBackwardsCompatibleDICOMProperty. Only deprecated name does not exist.", !check);
MITK_TEST_SUITE_REGISTRATION(mitkImageToItk)
#define MITK_TEST_CONDITION_REQUIRED(COND, MSG)
std::string MITKCORE_EXPORT GeneratePropertyNameForDICOMTag(unsigned int group, unsigned int element)
#define MITK_TEST(TESTMETHOD)
Adds a test to the current test suite.
DICOMTagPathMapType MITKDICOMREADER_EXPORT GetDefaultDICOMTagsOfInterest()
Test fixture for parameterized tests.
bool MITKCORE_EXPORT GetBackwardsCompatibleDICOMProperty(unsigned int group, unsigned int element, std::string const &backwardsCompatiblePropertyName, PropertyList const *propertyList, std::string &propertyValue)