Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
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 (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 <mitkProgressBar.h>
14 #include <mitkTestFixture.h>
15 #include <mitkTestingConfig.h>
16 #include <mitkTestingMacros.h>
17 
18 class mitkProgressBarTestSuite : public mitk::TestFixture
19 {
20  CPPUNIT_TEST_SUITE(mitkProgressBarTestSuite);
21  MITK_TEST(TestInstantiation);
22  CPPUNIT_TEST_SUITE_END();
23 
24 public:
25  void TestInstantiation()
26  {
27  mitk::ProgressBar::Pointer pb = mitk::ProgressBar::GetInstance();
28  CPPUNIT_ASSERT_MESSAGE("Single instance can be created on demand", pb.IsNotNull());
29  }
30 };
31 
32 MITK_TEST_SUITE_REGISTRATION(mitkProgressBar)
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.