82 CPPUNIT_TEST_SUITE(mitkSceneIOTest2Suite);
85 CPPUNIT_TEST_SUITE_END();
90 void Test_SceneIOInterfaces() { CPPUNIT_ASSERT_MESSAGE(
"Not urgent",
true); }
91 void Test_ReconstructionOfScenes()
97 for (
auto scenario : scenarios)
99 MITK_TEST_OUTPUT(<<
"\n===== Test_ReconstructionOfScenes, scenario '" << scenario.key <<
"' =====");
104 CPPUNIT_ASSERT_MESSAGE(
105 std::string(
"Save test scenario '") + scenario.key +
"' to '" + archiveFilename +
"'",
106 scenario.serializable == writer->SaveScene(originalStorage->GetAll(), originalStorage, archiveFilename));
108 if (scenario.serializable)
112 CPPUNIT_ASSERT_NO_THROW(restoredStorage = reader->LoadScene(archiveFilename));
113 CPPUNIT_ASSERT_MESSAGE(
114 std::string(
"Comparing restored test scenario '") + scenario.key +
"'",
126 scenario.comparisonPrecision)
136 CppUnit::TextUi::TestRunner runner;
137 runner.addTest(mitkSceneIOTest2Suite::suite());
138 return runner.run() ? 0 : 1;
itk::SmartPointer< Self > Pointer
bool CompareVerbose()
Shorthand for Compare(true).
#define MITK_TEST(TESTMETHOD)
Adds a test to the current test suite.
#define MITK_TEST_OUTPUT(x)
Output some text.
int mitkSceneIOTest2(int, char *[])
Test fixture for parameterized tests.
static std::string CreateTemporaryDirectory(const std::string &templateName="XXXXXX", std::string path=std::string())
static std::string CreateTemporaryFile(std::ofstream &tmpStream, const std::string &templateName="XXXXXX", std::string path=std::string())
Provides DataStorages that serve as test scenarios.
std::vector< Scenario > ScenarioList
List of Scenarios.
ScenarioList GetAllScenarios() const
Returns all registered scenarios.