28 CPPUNIT_TEST_SUITE(mitkNodePredicateDataPropertyTestSuite);
33 CPPUNIT_TEST_SUITE_END();
67 m_Node->SetData(m_Data);
70 m_OtherNode->SetData(m_OtherData);
76 void tearDown()
override
80 m_NullDataNode =
nullptr;
81 m_OtherNode =
nullptr;
83 m_OtherData =
nullptr;
86 void Check_InvalidConstructor()
91 void Check_InvalidCheckNode()
98 void Check_CheckName()
102 CPPUNIT_ASSERT(!predicate->CheckNode(m_NullDataNode));
103 CPPUNIT_ASSERT(predicate->CheckNode(m_Node));
104 CPPUNIT_ASSERT(predicate->CheckNode(m_OtherNode));
105 CPPUNIT_ASSERT(!predicate->CheckNode(m_NoPropNode));
108 void Check_CheckNameAndValue()
112 CPPUNIT_ASSERT(!predicate->CheckNode(m_NullDataNode));
113 CPPUNIT_ASSERT(predicate->CheckNode(m_Node));
114 CPPUNIT_ASSERT(!predicate->CheckNode(m_OtherNode));
115 CPPUNIT_ASSERT(!predicate->CheckNode(m_NoPropNode));
MITK_TEST_SUITE_REGISTRATION(mitkImageToItk)
#define MITK_TEST(TESTMETHOD)
Adds a test to the current test suite.
mitk::DataNode::Pointer m_Node
An object of this class represents an exception of MITK. Please don't instantiate exceptions manually...
Test fixture for parameterized tests.
static Pointer New(const char *_arg)