Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
mitkCoreObjectFactoryTest.cpp
Go to the documentation of this file.
1
/*============================================================================
2
3
The Medical Imaging Interaction Toolkit (MITK)
4
5
Copyright (c) German Cancer Research Center (DKFZ)
6
All rights reserved.
7
8
Use of this source code is governed by a 3-clause BSD license that can be
9
found in the LICENSE file.
10
11
============================================================================*/
12
13
#include "
mitkCoreObjectFactory.h
"
14
#include "
mitkTestingMacros.h
"
15
16
int
mitkCoreObjectFactoryTest
(
int
/*argc*/
,
char
*
/*argv*/
[])
17
{
18
MITK_TEST_BEGIN
(
"CoreObjectFactory"
)
19
20
mitk::CoreObjectFactory::Pointer
instance =
mitk::CoreObjectFactory::GetInstance
();
21
MITK_TEST_CONDITION_REQUIRED
(instance.IsNotNull(),
"Testing instantiation"
);
22
MITK_TEST_CONDITION
(strcmp(instance->GetNameOfClass(),
"CoreObjectFactory"
) == 0,
"Is this a CoreObjectFactory?"
);
23
24
MITK_TEST_END
()
25
}
mitk::CoreObjectFactory::GetInstance
static Pointer GetInstance()
Definition:
mitkCoreObjectFactory.cpp:77
MITK_TEST_CONDITION_REQUIRED
#define MITK_TEST_CONDITION_REQUIRED(COND, MSG)
Definition:
mitkTestingMacros.h:132
mitkTestingMacros.h
MITK_TEST_BEGIN
section GeneralTestsDeprecatedOldTestingStyle Deprecated macros All tests with MITK_TEST_BEGIN()
mitkCoreObjectFactory.h
MITK_TEST_CONDITION
#define MITK_TEST_CONDITION(COND, MSG)
Definition:
mitkTestingMacros.h:111
itk::SmartPointer< Self >
MITK_TEST_END
and MITK_TEST_END()
mitkCoreObjectFactoryTest
int mitkCoreObjectFactoryTest(int, char *[])
Definition:
mitkCoreObjectFactoryTest.cpp:16
Source
Modules
Core
test
mitkCoreObjectFactoryTest.cpp
Generated on Thu Mar 12 2020 10:23:41 for Medical Imaging Interaction Toolkit by
1.8.13