|
Last change
on this file since 567640 was 567640, checked in by Frederik Heber <heber@…>, 15 years ago |
|
PrototypeFactory now allows for replacing prototypes.
- if a prototype can only be manipulated via its constructor, it is essential
for the factory to allow for changing prototypes in a controlled manner.
All the functions on prototypes are protected, hence only friends may get
access.
- Library version is now 3:1:1, API version is 1.0.6.
|
-
Property mode
set to
100644
|
|
File size:
1.1 KB
|
| Line | |
|---|
| 1 | /*
|
|---|
| 2 | * PrototypeFactoryUnitTest.hpp
|
|---|
| 3 | *
|
|---|
| 4 | * Created on: Jan 03, 2011
|
|---|
| 5 | * Author: heber
|
|---|
| 6 | */
|
|---|
| 7 |
|
|---|
| 8 | #ifndef PROTOTYPEFACTORYUNITTEST_HPP_
|
|---|
| 9 | #define PROTOTYPEFACTORYUNITTEST_HPP_
|
|---|
| 10 |
|
|---|
| 11 | // include config.h
|
|---|
| 12 | #ifdef HAVE_CONFIG_H
|
|---|
| 13 | #include <config.h>
|
|---|
| 14 | #endif
|
|---|
| 15 |
|
|---|
| 16 | #include "stubs/CloneStub.hpp"
|
|---|
| 17 |
|
|---|
| 18 | #include <cppunit/extensions/HelperMacros.h>
|
|---|
| 19 |
|
|---|
| 20 | class PrototypeFactoryTest : public CppUnit::TestFixture
|
|---|
| 21 | {
|
|---|
| 22 | CPPUNIT_TEST_SUITE( PrototypeFactoryTest );
|
|---|
| 23 | CPPUNIT_TEST ( DistributionTest );
|
|---|
| 24 | CPPUNIT_TEST ( getProductEnumTest );
|
|---|
| 25 | CPPUNIT_TEST ( getProductNameTest );
|
|---|
| 26 | CPPUNIT_TEST ( getProductTypeTest );
|
|---|
| 27 | CPPUNIT_TEST ( Individualitytest );
|
|---|
| 28 | CPPUNIT_TEST ( PrototypeManipulatortest );
|
|---|
| 29 | CPPUNIT_TEST ( installPrototypetest );
|
|---|
| 30 | CPPUNIT_TEST_SUITE_END();
|
|---|
| 31 |
|
|---|
| 32 | public:
|
|---|
| 33 | void setUp();
|
|---|
| 34 | void tearDown();
|
|---|
| 35 |
|
|---|
| 36 | void DistributionTest();
|
|---|
| 37 | void getProductEnumTest();
|
|---|
| 38 | void getProductNameTest();
|
|---|
| 39 | void getProductTypeTest();
|
|---|
| 40 | void Individualitytest();
|
|---|
| 41 | void PrototypeManipulatortest();
|
|---|
| 42 | void installPrototypetest();
|
|---|
| 43 |
|
|---|
| 44 | private:
|
|---|
| 45 | IPrototype* rndA;
|
|---|
| 46 | IPrototype* rndA_1;
|
|---|
| 47 | IPrototype* rndA_2;
|
|---|
| 48 | IPrototype* rndA_3;
|
|---|
| 49 | IPrototype* rndB;
|
|---|
| 50 | };
|
|---|
| 51 |
|
|---|
| 52 | #endif /* PROTOTYPEFACTORYUNITTEST_HPP_ */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.