23 CPPUNIT_TEST_SUITE(mitkRTPlanReaderServiceTestSuite);
25 CPPUNIT_TEST_SUITE_END();
35 CPPUNIT_ASSERT_EQUAL(m_image.IsNotNull(),
true);
40 CheckStringProperty(
"DICOM.300A.0010.[0].300A.0013",
"1.2.246.352.72.11.320687012.17740.20090508173031");
41 CheckStringProperty(
"DICOM.300A.0010.[1].300A.0013",
"1.2.246.352.72.11.320687012.17741.20090508173031");
42 CheckStringProperty(
"DICOM.300A.0010.[0].300A.0016",
"Breast");
43 CheckStringProperty(
"DICOM.300A.0010.[1].300A.0016",
"CALC POINT");
44 CheckStringProperty(
"DICOM.300A.0010.[0].300A.0026",
"14");
45 CheckStringProperty(
"DICOM.300A.0010.[1].300A.0026",
"11.3113869239676");
47 CheckStringProperty(
"DICOM.300A.0070.[0].300A.0078",
"7");
48 CheckStringProperty(
"DICOM.300A.0070.[0].300A.0080",
"4");
50 CheckStringProperty(
"DICOM.300A.00B0.[0].300A.00C6",
"PHOTON");
51 CheckStringProperty(
"DICOM.300A.00B0.[1].300A.00C6",
"PHOTON");
52 CheckStringProperty(
"DICOM.300A.00B0.[2].300A.00C6",
"PHOTON");
53 CheckStringProperty(
"DICOM.300A.00B0.[3].300A.00C6",
"PHOTON");
55 CheckStringProperty(
"DICOM.300C.0060.[0].0008.1155",
"1.2.246.352.71.4.320687012.3190.20090511122144");
58 void CheckStringProperty(
const std::string& propertyName,
const std::string& expectedPropertyValue)
60 auto actualProperty = m_image->GetProperty(propertyName.c_str());
61 CPPUNIT_ASSERT_EQUAL_MESSAGE(
"Property not found: " + propertyName, actualProperty.IsNotNull(),
true);
63 CPPUNIT_ASSERT_EQUAL_MESSAGE(
"Property has not type string: " + propertyName, actualTemporoSpatialStringProperty !=
nullptr,
true);
64 std::string actualStringProperty = actualTemporoSpatialStringProperty->GetValue();
65 CPPUNIT_ASSERT_EQUAL_MESSAGE(propertyName +
" is not as expected", actualStringProperty, expectedPropertyValue);
MITK_TEST_SUITE_REGISTRATION(mitkImageToItk)
#define MITK_TEST(TESTMETHOD)
Adds a test to the current test suite.
static std::string GetTestDataFilePath(const std::string &testData)
Get the absolute path for test data.
Test fixture for parameterized tests.
Property for time and space resolved string values.