Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
mitkTestingMacros.h File Reference
#include <exception>
#include <iostream>
#include <string>
#include <itkMacro.h>
#include <mitkException.h>
#include <mitkTestNotRunException.h>
#include <mitkTestCaller.h>
#include <mitkTestManager.h>
#include <cppunit/extensions/HelperMacros.h>
#include <cppunit/ui/text/TestRunner.h>

Go to the source code of this file.

Classes

class  mitk::TestFailedException
 Indicate a failed test. More...
 

Namespaces

 mitk
 Find image slices visible on a given plane.
 

Macros

#define MITK_TEST_OUTPUT_NO_ENDL(x)
 Output some text without generating a terminating newline. Include. More...
 
#define MITK_TEST_OUTPUT(x)
 Output some text. More...
 
#define MITK_TEST_BEGIN(testName)
 Do some general test preparations. Must be called first in the main test function. More...
 
#define MITK_TEST_FAILED_MSG(MSG)
 Fail and finish test with message MSG. More...
 
#define MITK_TEST_END()
 Must be called last in the main test function. More...
 
#define MITK_TEST_CONDITION(COND, MSG)
 
#define MITK_TEST_CONDITION_REQUIRED(COND, MSG)
 
#define MITK_TEST_FOR_EXCEPTION_BEGIN(EXCEPTIONCLASS)
 Begin block which should be checked for exceptions. More...
 
#define MITK_TEST_FOR_EXCEPTION_END(EXCEPTIONCLASS)
 
#define MITK_TEST_FOR_EXCEPTION(EXCEPTIONCLASS, STATEMENT)
 Simplified version of MITK_TEST_FOR_EXCEPTION_BEGIN / END for a single statement. More...
 
#define MITK_ASSERT_EQUAL(EXPECTED, ACTUAL, MSG)
 Testing macro to test if two objects are equal. More...
 
#define MITK_TEST_NOT_EQUAL(OBJ1, OBJ2, MSG)
 Testing macro to test if two objects are not equal. More...
 
#define MITK_ASSERT_NOT_EQUAL(OBJ1, OBJ2, MSG)
 Testing macro to test if two objects are not equal. More...
 
#define MITK_TEST_SUITE_REGISTRATION(TESTSUITE_NAME)
 Registers the given test suite. More...
 
#define MITK_TEST(TESTMETHOD)
 Adds a test to the current test suite. More...
 
#define MITK_PARAMETERIZED_TEST(TESTMETHOD, ARGS)
 Adds a parameterized test to the current test suite. More...
 
#define MITK_PARAMETERIZED_CMD_LINE_TEST(TESTMETHOD)
 Adds a parameterized test to the current test suite. More...
 
#define MITK_PARAMETERIZED_TEST_1(TESTMETHOD, arg1)
 Adds a parameterized test to the current test suite. More...
 
#define MITK_PARAMETERIZED_TEST_2(TESTMETHOD, arg1, arg2)
 Adds a parameterized test to the current test suite. More...
 

Macro Definition Documentation

◆ MITK_TEST_CONDITION

#define MITK_TEST_CONDITION (   COND,
  MSG 
)
Deprecated:
(as of 2013_09) Use CPPUNIT_ASSERT or CPPUNIT_ASSERT_MESSAGE instead.

Definition at line 111 of file mitkTestingMacros.h.

◆ MITK_TEST_CONDITION_REQUIRED

#define MITK_TEST_CONDITION_REQUIRED (   COND,
  MSG 
)
Deprecated:
(as of 2013_09) Use CPPUNIT_ASSERT or CPPUNIT_ASSERT_MESSAGE instead.

Definition at line 132 of file mitkTestingMacros.h.

◆ MITK_TEST_FOR_EXCEPTION_END

#define MITK_TEST_FOR_EXCEPTION_END (   EXCEPTIONCLASS)
Deprecated:
(as of 2013_09)

Definition at line 175 of file mitkTestingMacros.h.