Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
mitkProgressBarTest.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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #include <mitkProgressBar.h>
18 #include <mitkTestFixture.h>
19 #include <mitkTestingConfig.h>
20 #include <mitkTestingMacros.h>
21 
22 class mitkProgressBarTestSuite : public mitk::TestFixture
23 {
24  CPPUNIT_TEST_SUITE(mitkProgressBarTestSuite);
25  MITK_TEST(TestInstantiation);
26  CPPUNIT_TEST_SUITE_END();
27 
28 public:
29  void TestInstantiation()
30  {
32  CPPUNIT_ASSERT_MESSAGE("Single instance can be created on demand", pb.IsNotNull());
33  }
34 };
35 
36 MITK_TEST_SUITE_REGISTRATION(mitkProgressBar)
itk::SmartPointer< Self > Pointer
MITK_TEST_SUITE_REGISTRATION(mitkImageToItk)
#define MITK_TEST(TESTMETHOD)
Adds a test to the current test suite.
static ProgressBar * GetInstance()
static method to get the GUI dependent ProgressBar-instance so the methods for steps to do and progre...
Test fixture for parameterized tests.