29 #include <vtkDebugLeaks.h>
33 CPPUNIT_TEST_SUITE(mitkExampleDataStructureReaderWriterTestSuite);
36 MITK_TEST(ReadWrite_ExampleData_SavedAndLoadedDataEqualToExample);
37 CPPUNIT_TEST_SUITE_END();
41 std::string m_DefaultDataString;
50 m_DefaultDataString =
"This is the example data content\nAnd a second line\n";
52 m_Data->SetData(m_DefaultDataString);
55 void tearDown()
override
57 m_DefaultDataString =
"";
61 void ReadWrite_ExampleData_SavedAndLoadedDataEqualToExample()
68 itksys::SystemTools::RemoveFile(path);
70 CPPUNIT_ASSERT_MESSAGE(
"Comparing created and loaded example data.",
MITK_TEST_SUITE_REGISTRATION(mitkImageToItk)
static std::string GetTempPath()
#define MITK_TEST(TESTMETHOD)
Adds a test to the current test suite.
static mitk::BaseData::Pointer LoadBaseData(const std::string &path)
Create a BaseData object from the given file.
static bool SaveBaseData(mitk::BaseData *data, const std::string &path)
SaveBaseData Convenience method to save arbitrary baseData.
Test fixture for parameterized tests.
MITKNEWMODULE_EXPORT bool Equal(mitk::ExampleDataStructure *leftHandSide, mitk::ExampleDataStructure *rightHandSide, mitk::ScalarType eps, bool verbose)
Returns true if the example data structures are considered equal.
MITKCORE_EXPORT const ScalarType eps