diff --git a/Modules/Segmentation/Testing/mitkToolManagerProviderTest.cpp b/Modules/Segmentation/Testing/mitkToolManagerProviderTest.cpp index 666bfb1b09..4b96632770 100644 --- a/Modules/Segmentation/Testing/mitkToolManagerProviderTest.cpp +++ b/Modules/Segmentation/Testing/mitkToolManagerProviderTest.cpp @@ -1,49 +1,48 @@ /*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See LICENSE.txt or http://www.mitk.org for details. ===================================================================*/ #include "mitkTestingMacros.h" #include "mitkToolManagerProvider.h" #include "itkLightObject.h" #include #include "mitkModuleContext.h" #include "mitkServiceReference.h" #include "mitkGlobalInteraction.h" class mitkToolManagerProviderTestClass { public: static void RegisterService(){ mitk::GetModuleContext()->RegisterService(mitk::ToolManagerProvider::New().GetPointer()); } }; int mitkToolManagerProviderTest(int, char* []) { MITK_TEST_BEGIN("ToolManagerProvider") - mitk::GlobalInteraction::GetInstance()->Initialize("global"); mitkToolManagerProviderTestClass::RegisterService(); mitk::ToolManagerProvider* service = mitk::ToolManagerProvider::GetInstance(); MITK_TEST_CONDITION(service!=NULL,"Service was succesfully called"); MITK_TEST_CONDITION((service->GetToolManager()) == (mitk::ToolManagerProvider::GetInstance()->GetToolManager()), "Service singleton"); MITK_TEST_END() }