30 readerSource->LoadBuiltIn3DConfigs();
31 readerSource->LoadBuiltIn3DnTConfigs();
34 for (
auto rIter = allReaders.begin();
35 rIter != allReaders.end();
40 MITK_TEST_OUTPUT(<<
"********************************************************************************");
41 MITK_TEST_OUTPUT(<<
"Testing reader '" << originalReader->GetConfigurationLabel() <<
"'" );
42 MITK_TEST_OUTPUT(<<
"********************************************************************************");
45 std::string xmlSerialization = serializer->CreateConfigStringFromReader( originalReader.GetPointer() );
46 MITK_TEST_CONDITION( !xmlSerialization.empty(),
"DICOMReaderConfigurator is able to serialize reader");
48 std::cout << xmlSerialization << std::endl;
54 MITK_TEST_CONDITION( reconstructedReader.IsNotNull(),
"DICOMReaderConfigurator is able to create reader from XML");
56 MITK_TEST_CONDITION( *reconstructedReader == *originalReader,
"Readers are equal before and after serialization" )
58 catch(std::exception& e)
itk::SmartPointer< Self > Pointer
#define MITK_TEST_CONDITION_REQUIRED(COND, MSG)
std::list< DICOMFileReader::Pointer > ReaderList
section GeneralTestsDeprecatedOldTestingStyle Deprecated macros All tests with MITK_TEST_BEGIN()
int mitkDICOMReaderConfiguratorTest(int, char *[])
Verify serialization ability of DICOMReaderConfigurator.
#define MITK_TEST_OUTPUT(x)
Output some text.
#define MITK_TEST_CONDITION(COND, MSG)
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.