Classes | Functions

mitkTrackingToolTest.cpp File Reference

#include "mitkTestingMacros.h"
#include "mitkTrackingTool.h"
#include "mitkTrackingTypes.h"
#include "mitkCommon.h"
#include <itkObject.h>
#include <itkObjectFactory.h>

Go to the source code of this file.

Classes

class  TrackingToolTestClass

Functions

int mitkTrackingToolTest (int, char *[])

Function Documentation

int mitkTrackingToolTest ( int  ,
char *  [] 
)

This function is testing the Class TrackingDevice. For most tests we would need the MicronTracker hardware, so only a few simple tests, which can run without the hardware are implemented yet (2009, January, 23rd). As soon as there is a working concept to test the tracking classes which are very close to the hardware on all systems more tests are needed here.

Definition at line 51 of file mitkTrackingToolTest.cpp.

References MITK_TEST_BEGIN, MITK_TEST_CONDITION, MITK_TEST_END, and TrackingToolTestClass::New().

{
  MITK_TEST_BEGIN("TrackingTool");

  // Test instantiation of TrackingTool
  TrackingToolTestClass::Pointer trackingToolTestClass = TrackingToolTestClass::New();
  MITK_TEST_CONDITION(trackingToolTestClass.IsNotNull(),"Test instatiation");

  // Test method GetToolName()
  MITK_TEST_CONDITION(!strcmp(trackingToolTestClass->GetToolName(),""),"Tool name should be empty");
  // Test method GetErrorMessage()
  MITK_TEST_CONDITION(!strcmp(trackingToolTestClass->GetErrorMessage(),""),"Error message should be empty");

  MITK_TEST_END();
}
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines