Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #include "mitkClaronInterface.h"
00019
00020 #include "mitkTestingMacros.h"
00021
00022 #include <iostream>
00023
00030 int mitkClaronInterfaceTest(int , char* [])
00031 {
00032 MITK_TEST_BEGIN("ClaronInterface")
00033
00034
00035 mitk::ClaronInterface::Pointer myClaronInterface = mitk::ClaronInterface::New();
00036 myClaronInterface->Initialize("Test","Test");
00037
00038
00039 MITK_TEST_CONDITION_REQUIRED((myClaronInterface.IsNotNull()),"Testing instantiation:")
00040
00041
00042 if (!myClaronInterface->IsMicronTrackerInstalled())
00043 {
00044 MITK_TEST_OUTPUT(<< "In the following stubs are tested, errors are expected and should occur.")
00045 MITK_TEST_CONDITION_REQUIRED((myClaronInterface->GetAllActiveTools().empty()),"Testing stub of GetAllActiveTools() ");
00046 MITK_TEST_CONDITION_REQUIRED((myClaronInterface->GetName(0)==NULL),"Testing stub of GetName() ");
00047 MITK_TEST_CONDITION_REQUIRED((myClaronInterface->GetPosition(0).empty()),"Testing stub of GetPosition() ");
00048 MITK_TEST_CONDITION_REQUIRED((myClaronInterface->GetQuaternions(0).empty()),"Testing stub of GetQuaternions() ");
00049 MITK_TEST_CONDITION_REQUIRED((myClaronInterface->GetTipPosition(0).empty()),"Testing stub of GetTipPosition() ");
00050 MITK_TEST_CONDITION_REQUIRED((myClaronInterface->GetTipQuaternions(0).empty()),"Testing stub of GetTipQuaternions() ");
00051 MITK_TEST_CONDITION_REQUIRED(!(myClaronInterface->StartTracking()),"Testing stub of StartTracking() ");
00052 MITK_TEST_CONDITION_REQUIRED(!(myClaronInterface->StopTracking()),"Testing stub of StopTracking() ");
00053 }
00054
00055
00056 MITK_TEST_END()
00057 }
00058
00059