Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryTestCase.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 BlueBerry Platform
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 
18 #ifndef BERRYTESTCASE_H_
19 #define BERRYTESTCASE_H_
20 
21 #include <cppunit/TestCase.h>
22 
23 #include <org_blueberry_test_Export.h>
24 
25 namespace berry {
26 
27 class BERRY_TEST_EXPORT TestCase : public CppUnit::TestCase
28 {
29 
30 public:
31 
32  TestCase(const QString& testName);
33 
40  virtual void DoSetUp();
41 
49  virtual void DoTearDown();
50 
54  void setUp();
55 
59  void tearDown();
60 
61 protected:
62 
67  void LeakDetailsOn();
68 
73  void IgnoreLeakingObjects();
74 
75 private:
76 
77  bool m_LeakDetails;
78  bool m_IgnoreLeakage;
79 
80 };
81 
82 }
83 
84 #endif /* BERRYTESTCASE_H_ */