31 for (
auto iter = listM->begin();
35 std::string key = iter->first;
38 auto otherEntry = otherListM->find( key );
39 MITK_TEST_CONDITION( otherEntry != otherListM->end(),
" Property '" << key <<
"' is contained in other list" )
42 MITK_TEST_CONDITION( equal &= (*property == *otherProperty),
" Property '" << key <<
"' is equal in both list" )
51 MITK_TEST_CONDITION(allTestPropsInReference,
"All test properties found in reference properties")
53 MITK_TEST_CONDITION(allReferencePropsInTest,
"All reference properties found in test properties")
54 return allTestPropsInReference && allReferencePropsInTest;
66 for (
int arg = 1; arg < argc; ++arg)
69 files.push_back( argv[arg] );
74 for (mitk::StringList::const_iterator fileIter = files.begin();
75 fileIter != files.end();
83 MITK_TEST_OUTPUT(<<
"Loaded " << images.size() <<
" images. Remembering properties of the first one for later comparison.")
96 MITK_TEST_OUTPUT(<<
"Generating properties via reader. Comparing new properties to previously loaded version.")
103 MITK_TEST_CONDITION(listsAreEqual,
"DICOM file reader generates a valid property list when provided a pre-loaded image");
109 MITK_TEST_OUTPUT(<<
"Generating properties via reader. Comparing new properties to previously loaded version.")
bool CheckAllPropertiesAreInOtherList(const mitk::PropertyList *list, const mitk::PropertyList *otherList)
itk::SmartPointer< Self > Pointer
static bool IsDICOM(const std::string &filename)
Test whether a file is DICOM at all.
#define MITK_TEST_CONDITION_REQUIRED(COND, MSG)
section GeneralTestsDeprecatedOldTestingStyle Deprecated macros All tests with MITK_TEST_BEGIN()
Key-value list holding instances of BaseProperty.
bool VerifyPropertyListsEquality(const mitk::PropertyList *testList, const mitk::PropertyList *referenceList)
#define MITK_TEST_OUTPUT(x)
Output some text.
std::list< Image::Pointer > ImageList
Abstract base class for properties.
std::map< std::string, BaseProperty::Pointer > PropertyMap
#define MITK_TEST_CONDITION(COND, MSG)
std::vector< std::string > StringList
int mitkDICOMPreloadedVolumeTest(int argc, char **const argv)
Image::Pointer DecorateVerifyCachedImage(const StringList &files, mitk::Image::Pointer cachedImage)
section MAP_FRAME_Mapper_Settings Mapper settings For the mapping of corrected images
ImageList LoadFiles(const StringList &files)
const PropertyMap * GetMap() const