27 MITK_TEST_BEGIN(
"ClaronInterface")
30 mitk::ClaronInterface::Pointer myClaronInterface = mitk::ClaronInterface::New();
31 myClaronInterface->Initialize(
"Test",
"Test");
34 MITK_TEST_CONDITION_REQUIRED((myClaronInterface.IsNotNull()),
"Testing instantiation:")
37 if (!myClaronInterface->IsMicronTrackerInstalled())
39 MITK_TEST_OUTPUT(<<
"In the following stubs are tested, errors are expected and should occur.")
40 MITK_TEST_CONDITION_REQUIRED((myClaronInterface->GetAllActiveTools().empty()),
"Testing stub of GetAllActiveTools() ");
41 MITK_TEST_CONDITION_REQUIRED((myClaronInterface->GetName(0)==
nullptr),
"Testing stub of GetName() ");
42 MITK_TEST_CONDITION_REQUIRED((myClaronInterface->GetPosition(0).empty()),
"Testing stub of GetPosition() ");
43 MITK_TEST_CONDITION_REQUIRED((myClaronInterface->GetQuaternions(0).empty()),
"Testing stub of GetQuaternions() ");
44 MITK_TEST_CONDITION_REQUIRED((myClaronInterface->GetTipPosition(0).empty()),
"Testing stub of GetTipPosition() ");
45 MITK_TEST_CONDITION_REQUIRED((myClaronInterface->GetTipQuaternions(0).empty()),
"Testing stub of GetTipQuaternions() ");
46 MITK_TEST_CONDITION_REQUIRED(!(myClaronInterface->StartTracking()),
"Testing stub of StartTracking() ");
47 MITK_TEST_CONDITION_REQUIRED(!(myClaronInterface->StopTracking()),
"Testing stub of StopTracking() ");
51 myClaronInterface->GrabFrame();
57 MITK_TEST_CONDITION_REQUIRED(success,
"Testing stub of GrabFrame() ");