20 return nullptr != node;
27 return nullptr != node;
33 CPPUNIT_TEST_SUITE(mitkNodePredicateFunctionTestSuite);
38 CPPUNIT_TEST_SUITE_END();
45 return nullptr != node;
50 CPPUNIT_ASSERT(!predicate->
CheckNode(m_NullNode));
51 CPPUNIT_ASSERT(predicate->
CheckNode(m_Node));
61 void tearDown()
override 67 void CheckFreeFunction()
70 this->Check(predicate);
73 void CheckFunctionObject()
75 FunctionObject functionObject;
77 this->Check(predicate);
80 void CheckMemberFunction()
83 auto memberFunction = std::bind(&mitkNodePredicateFunctionTestSuite::MemberFunction,
this, _1);
85 this->Check(predicate);
88 void CheckLambdaExpression()
91 return nullptr != node;
94 this->Check(predicate);
bool FreeFunction(const mitk::DataNode *node)
MITK_TEST_SUITE_REGISTRATION(mitkImageToItk)
#define MITK_TEST(TESTMETHOD)
Adds a test to the current test suite.
static Pointer New(const FunctionType &_arg)
virtual bool CheckNode(const mitk::DataNode *node) const =0
This method will be used to evaluate the node. Has to be overwritten in subclasses.
mitk::DataNode::Pointer m_Node
Test fixture for parameterized tests.
Interface for evaluation conditions used in the DataStorage class GetSubset() method.
Class for nodes of the DataTree.