| Last change
 on this file since 746ff1 was             746ff1, checked in by Frederik Heber <heber@…>, 15 years ago | 
        
          | 
Added Creator and Factory pattern.
 unittests added.
new subfolder stubs that contains stubs for Creator and Factory.
the only preprocessor stuff is in Factory_impl.hpp.
FactoryTypeList.hpp is necessary as long as no variadic template argument
lists are possible.
library version is 2:0:0, API version is 1.0.2.
 | 
        
          | 
              
Property                 mode
 set to                 100644 | 
        
          | File size:
            532 bytes | 
      
      
| Line |  | 
|---|
| 1 | /* | 
|---|
| 2 | * FactoryUnitTest.hpp | 
|---|
| 3 | * | 
|---|
| 4 | *  Created on: Jan 03, 2011 | 
|---|
| 5 | *      Author: heber | 
|---|
| 6 | */ | 
|---|
| 7 |  | 
|---|
| 8 | #ifndef FACTORYUNITTEST_HPP_ | 
|---|
| 9 | #define FACTORYUNITTEST_HPP_ | 
|---|
| 10 |  | 
|---|
| 11 | // include config.h | 
|---|
| 12 | #ifdef HAVE_CONFIG_H | 
|---|
| 13 | #include <config.h> | 
|---|
| 14 | #endif | 
|---|
| 15 |  | 
|---|
| 16 |  | 
|---|
| 17 | #include <cppunit/extensions/HelperMacros.h> | 
|---|
| 18 |  | 
|---|
| 19 | class FactoryTest : public CppUnit::TestFixture | 
|---|
| 20 | { | 
|---|
| 21 | CPPUNIT_TEST_SUITE( FactoryTest ); | 
|---|
| 22 | CPPUNIT_TEST ( DistributionTest ); | 
|---|
| 23 | CPPUNIT_TEST_SUITE_END(); | 
|---|
| 24 |  | 
|---|
| 25 | public: | 
|---|
| 26 | void setUp(); | 
|---|
| 27 | void tearDown(); | 
|---|
| 28 |  | 
|---|
| 29 | void DistributionTest(); | 
|---|
| 30 |  | 
|---|
| 31 | private: | 
|---|
| 32 | }; | 
|---|
| 33 |  | 
|---|
| 34 | #endif /* FACTORYUNITTEST_HPP_ */ | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.