Classes | Functions

mitkClaronTrackingDeviceTest.cpp File Reference

#include "mitkClaronTrackingDevice.h"
#include "mitkClaronTool.h"
#include "mitkTestingMacros.h"
#include "mitkStandardFileLocations.h"

Go to the source code of this file.

Classes

class  mitkClaronTrackingDeviceTestClass

Functions

int mitkClaronTrackingDeviceTest (int, char *[])

Function Documentation

int mitkClaronTrackingDeviceTest ( int  ,
char *  [] 
)

This function is testing the Class ClaronTrackingDevice. 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 125 of file mitkClaronTrackingDeviceTest.cpp.

References MITK_TEST_BEGIN, MITK_TEST_END, MITK_TEST_OUTPUT, mitkClaronTrackingDeviceTestClass::TestAllMethodsOnSystemsWithoutMicronTracker(), mitkClaronTrackingDeviceTestClass::TestInstantiation(), mitkClaronTrackingDeviceTestClass::TestIsMicronTrackerInstalled(), and mitkClaronTrackingDeviceTestClass::TestToolConfiguration().

{
  MITK_TEST_BEGIN("ClaronTrackingDevice");

    mitkClaronTrackingDeviceTestClass::TestInstantiation();
  mitkClaronTrackingDeviceTestClass::TestToolConfiguration();

  /* The following tests don't run under linux environments. This is or could be caused by the fact that the MicronTracker interface
  * is developed under windows and not tested under linux yet (26.2.2009). So - in my opinion - the best approach is to first test
  * the MicronTracker code under linux (and make the necessary changes of course) and in parallel write the linux tests or make this
  * tests runnable under linux.
  */
#ifdef WIN32
  if (mitkClaronTrackingDeviceTestClass::TestIsMicronTrackerInstalled())
  {
    MITK_TEST_OUTPUT(<< "... MicronTracker is installed on your System, so we don't run any further tests. (All tests run on systems without MicronTracker)");
  }
  else
  {
    MITK_TEST_OUTPUT(<< ".Test");
    mitkClaronTrackingDeviceTestClass::TestAllMethodsOnSystemsWithoutMicronTracker();
  }
#endif
  MITK_TEST_END();
}
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines