22 CPPUNIT_TEST_SUITE(mitkPropertyNameHelperTestSuite);
28 CPPUNIT_TEST_SUITE_END();
32 std::string oldStudyName;
33 std::string oldSeriesName;
39 oldSeriesName =
"dicom.study.SeriesDescription";
40 oldStudyName =
"dicom.study.StudyDescription";
42 _propList->SetStringProperty(oldSeriesName.c_str(),
"old_series");
45 _propList->SetStringProperty(oldStudyName.c_str(),
"old_study");
48 void tearDown()
override {}
53 "Testing GeneratePropertyNameForDICOMTag(mitk::DICOMTag(0x0018, 0x0080)");
57 "Testing GeneratePropertyNameForDICOMTag(mitk::DICOMTag(0x0008, 0x001a)");
62 std::string result =
"";
64 CPPUNIT_ASSERT_MESSAGE(
"Testing GetBackwardsCompatibleDICOMProperty. Only deprecated name is existing.", check);
65 CPPUNIT_ASSERT_MESSAGE(
"Testing returned property value. Only deprecated name is existing.", result ==
"old_study");
68 CPPUNIT_ASSERT_MESSAGE(
"Testing GetBackwardsCompatibleDICOMProperty. Only deprecated name does not exist.", check);
69 CPPUNIT_ASSERT_MESSAGE(
"Testing returned property value. Only deprecated name is existing.",
70 result ==
"new_series");
73 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)