| Last change
 on this file since ec61ec was             c7ac70, checked in by Frederik Heber <heber@…>, 14 years ago | 
        
          | 
FIX: Forgot to add Registry<>::cleanup() to CONSTRUCT_....
 added unit test whether cleanup is working.
 | 
        
          | 
              
Property                 mode
 set to                 100644 | 
        
          | File size:
            757 bytes | 
      
      
| Line |  | 
|---|
| 1 | /* | 
|---|
| 2 | * RegistryUnitTest.hpp | 
|---|
| 3 | * | 
|---|
| 4 | *  Created on: Oct 27, 2010 | 
|---|
| 5 | *      Author: heber | 
|---|
| 6 | */ | 
|---|
| 7 |  | 
|---|
| 8 | #ifndef REGISTRYUNITTEST_HPP_ | 
|---|
| 9 | #define REGISTRYUNITTEST_HPP_ | 
|---|
| 10 |  | 
|---|
| 11 | // include config.h | 
|---|
| 12 | #ifdef HAVE_CONFIG_H | 
|---|
| 13 | #include <config.h> | 
|---|
| 14 | #endif | 
|---|
| 15 |  | 
|---|
| 16 | #include <cppunit/extensions/HelperMacros.h> | 
|---|
| 17 |  | 
|---|
| 18 | class RegistryStub; | 
|---|
| 19 |  | 
|---|
| 20 | /********************************************** Test classes **************************************/ | 
|---|
| 21 |  | 
|---|
| 22 | class RegistryTest : public CppUnit::TestFixture | 
|---|
| 23 | { | 
|---|
| 24 | CPPUNIT_TEST_SUITE( RegistryTest) ; | 
|---|
| 25 | CPPUNIT_TEST ( InOutCheck ); | 
|---|
| 26 | CPPUNIT_TEST ( cleanupCheck ); | 
|---|
| 27 | CPPUNIT_TEST_SUITE_END(); | 
|---|
| 28 |  | 
|---|
| 29 | public: | 
|---|
| 30 | void setUp(); | 
|---|
| 31 | void tearDown(); | 
|---|
| 32 | void InOutCheck(); | 
|---|
| 33 | void cleanupCheck(); | 
|---|
| 34 |  | 
|---|
| 35 | private: | 
|---|
| 36 | RegistryStub* registry; | 
|---|
| 37 | }; | 
|---|
| 38 |  | 
|---|
| 39 | #endif /* REGISTRYUNITTEST_HPP_ */ | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.