Ignore:
Timestamp:
Jan 4, 2011, 5:15:14 PM (15 years ago)
Author:
Frederik Heber <heber@…>
Children:
1afcbe
Parents:
746ff1
git-author:
Frederik Heber <heber@…> (01/04/11 15:57:33)
git-committer:
Frederik Heber <heber@…> (01/04/11 17:15:14)
Message:

Factory know has an additional type table and stubs have been refactored.

  • CommonStub.?pp contains basic classes with a int counter inside.
  • Library version is now 2:1:0, API is 1.0.3.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Patterns/unittests/FactoryUnitTest.hpp

    r746ff1 r724564  
    1414#endif
    1515
     16class ICreatorStub;
    1617
    1718#include <cppunit/extensions/HelperMacros.h>
     
    2122  CPPUNIT_TEST_SUITE( FactoryTest );
    2223  CPPUNIT_TEST ( DistributionTest );
     24  CPPUNIT_TEST ( getProductEnumTest );
     25  CPPUNIT_TEST ( getProductNameTest );
     26  CPPUNIT_TEST ( getProductTypeTest );
    2327  CPPUNIT_TEST_SUITE_END();
    2428
     
    2832
    2933  void DistributionTest();
     34  void getProductEnumTest();
     35  void getProductNameTest();
     36  void getProductTypeTest();
    3037
    3138private:
     39  ICreatorStub * rndA;
     40  ICreatorStub * rndB;
    3241};
    3342
Note: See TracChangeset for help on using the changeset viewer.