Medical Imaging Interaction Toolkit  2018.4.99-b20efe7f
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
 DataCollection - Class to facilitate loading/accessing structured data.
 

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.

Referenced by Assert_ImageMetaData_AreEqual(), Assert_ItkImageImportRandomValuesSucceded_ReturnsTrue(), Assert_ItkImageImportSucceded_ReturnsTrue(), Assert_ItkImportWithinAccessByItkSucceded_ReturnsTrue(), Assert_ItkVectorImageImportAndCast_ReturnsTrue(), CheckAllPropertiesAreInOtherList(), CheckIntersectionPointsOfTwoGeometry3D(), CheckIntersectionWithPointCloud(), CheckIntersectionWithRotatedGeometry(), CheckIntersectionWithRotatedGeometry90(), CheckPlanesInsideBoundingBox(), CheckPlanesInsideBoundingBoxOnlyOnOneSlice(), CheckPlanesOutsideOfBoundingBox(), CheckRWSize(), itkMaskedNaryStatisticsImageFilterTest(), mitkCoreObjectFactoryTest(), mitkDICOMPreloadedVolumeTest(), mitkDICOMReaderConfiguratorTest(), mitkDICOMSimpleVolumeImportTest(), mitkDICOMTestingSanityTest(), mitkImageTest(), mitkImageVtkMapper2DColorTest(), mitkImageVtkMapper2DLevelWindowTest(), mitkImageVtkMapper2DLookupTableTest(), mitkImageVtkMapper2DOpacityTest(), mitkImageVtkMapper2DOpacityTransferFunctionTest(), mitkImageVtkMapper2DResliceInterpolationPropertyTest(), mitkImageVtkMapper2DSwivelTest(), mitkImageVtkMapper2DTest(), mitkImageVtkMapper2DTransferFunctionTest(), mitkMaskedDynamicImageStatisticsGeneratorTest(), mitkMessageTest(), mitkPixelBasedParameterFitImageGeneratorTest(), mitkPlaneGeometryDataMapper2DTest(), mitkPointSetFileIOTest(), mitkPointSetVtkMapper2DGlyphTypeTest(), mitkPointSetVtkMapper2DImageTest(), mitkPointSetVtkMapper2DTest(), mitkPointSetVtkMapper2DTransformedPointsTest(), mitkROIBasedParameterFitImageGeneratorTest(), mitkSceneIOCompatibilityTest(), mitkSurfaceDepthSortingTest(), mitkSurfaceToSurfaceFilterTest(), mitkSurfaceVtkMapper3DTest(), mitkTrackingDeviceSourceTest(), mitkViewportRenderingTest(), mitkVtkWidgetRenderingTest(), testAddPlanePosition(), TestAllProperties(), TestDataStorage(), testGeometry3D(), testGetPlanePosition(), testIfBothTransformationsProduceSameResults(), testIfPointIsTransformedAsExpected(), mitk::DICOMFileReaderTestHelper::TestInputFilenames(), mitk::DICOMFileReaderTestHelper::TestMitkImagesAreLoaded(), mitk::DICOMFileReaderTestHelper::TestOutputsContainInputs(), TestRandomPixelAccess(), testRemoveAll(), testRemovePlanePosition(), testTransferItkTransformToVtkMatrix(), and VerifyPropertyListsEquality().

◆ 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.

Referenced by CheckAllPropertiesAreInOtherList(), ConvertToConcentrationTest(), DirectOverlayTest(), GetEmptyTestImageWithGeometry(), ImageVtkDataReferenceCheck(), mitkConcreteModelFactoryBaseTest(), mitkCoreObjectFactoryTest(), mitkDataNodeTest(), mitkDataStorageTest(), mitkDescriptivePharmacokineticBrixModelTest(), mitkDICOMFileReaderTest(), mitkDICOMITKSeriesGDCMReaderBasicsTest(), mitkDICOMLocaleTest(), mitkDICOMLocaleTestWithReferenceImage(), mitkDICOMPreloadedVolumeTest(), mitkDICOMReaderConfiguratorTest(), mitkDICOMSimpleVolumeImportTest(), mitkDICOMTestingSanityTest(), mitkEventConfigTest(), mitkFileWriterRegistryTest(), mitkGeometry3DTest(), mitkImageAccessorTest(), mitkImageDimensionConverterTest(), mitkImageTest(), mitkImageVtkMapper2DLevelWindowTest(), mitkLevelWindowManagerTest(), mitkLevenbergMarquardtModelFitFunctorTest(), mitkMessageTest(), mitkModelFitStaticParameterMapTest(), mitkMultiComponentImageDataComparisonFilterTest(), mitkMVConstrainedCostFunctionDecoratorTest(), mitkNodePredicateSourceTest(), mitkPixelBasedParameterFitImageGeneratorTest(), mitkPlanarArrowTest(), mitkPlanarCrossTest(), mitkPlanarPolygonTest(), mitkPlanarSubdivisionPolygonTest(), mitkPlanePositionManagerTest(), mitkPointSetReaderTest(), mitkPointSetWriterTest(), mitkPropertySerializationTest(), mitkRenderingManagerTest(), mitkROIBasedParameterFitImageGeneratorTest(), mitkRotatedSlice4DTest(), mitkSceneIOTest(), mitkSimpleBarrierConstraintCheckerTest(), mitkSimpleHistogramTest(), mitkSlicedGeometry3D_ChangeImageGeometryConsideringOriginOffset_Test(), mitkSlicedGeometry3DTest(), mitkStateMachineContainerTest(), mitkStepperTest(), mitkSurfaceVtkWriterTest(), mitkTrackingDeviceSourceTest(), mitkTransferFunctionTest(), mitkUndoControllerTest(), mitkUnstructuredGridTest(), mitkVerboseLimitedLinearUndoTest(), mitkVolumeCalculatorTest(), mitkVtkWidgetRenderingTest(), TestDataStorage(), TestGenericPropertyForDataType(), testGeometry3D(), testGeometryAfterCasting(), testIndexAndWorldConsistency(), testIndexAndWorldConsistencyForIndex(), testIndexAndWorldConsistencyForVectors(), testItkImageIsCenterBased(), mitk::DICOMFileReaderTestHelper::TestOutputsContainInputs(), mitk::DICOMFileReaderTestHelper::TestSingleBlockIsRead(), TestStreamMethods(), TestThreadSaveLog(), Valid_AllInputTimesteps_ReturnsTrue(), and Valid_ImageExpandedByTimestep_ReturnsTrue().

◆ 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.

Referenced by mitkImageAccessorTest(), TestDataStorage(), and TestRandomPixelAccess().