Test suite for the Units of Measure Manager Class. More...
#include <TsUnitsOfMeasureManager.h>
Public Member Functions | |
| void | setUp () |
| void | tearDown () |
Protected Member Functions | |
| void | tcConvert () |
| void | tcFindUomByAltName () |
| Test Case: Find an unit of using one of it's alternative name. More... | |
| void | tcFindUomByName () |
| Test Case: Find an unit of using it's identificaton number. void tcFindUomById ();. More... | |
| void | tcFindUomByNames () |
| Test Case: Find an unit of using either it's name or on e of it's alternative names. More... | |
| void | tcGeAltNames () |
Private Member Functions | |
| CPPUNIT_TEST (tcFindUomByName) | |
| CPPUNIT_TEST (tcFindUomByAltName) | |
| CPPUNIT_TEST (tcFindUomByNames) | |
| CPPUNIT_TEST (tcGeAltNames) | |
| CPPUNIT_TEST (tcConvert) | |
| CPPUNIT_TEST_SUITE (TsUnitsOfMeasureManager) | |
| CPPUNIT_TEST_SUITE_END () | |
Private Attributes | |
| std::vector< std::string > | alternativeNames |
| te::common::UnitOfMeasurePtr | uomA |
| te::common::UnitOfMeasurePtr | uomB |
| te::common::UnitOfMeasurePtr | uomC |
| te::common::UnitOfMeasurePtr | uomD |
Test suite for the Units of Measure Manager Class.
This test suite will check the following:
Definition at line 64 of file TsUnitsOfMeasureManager.h.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| void TsUnitsOfMeasureManager::setUp | ( | ) |
Definition at line 28 of file TsUnitsOfMeasureManager.cpp.
References alternativeNames, te::common::Angle, te::common::Singleton< UnitsOfMeasureManager >::getInstance(), te::common::UnitsOfMeasureManager::insert(), te::common::Length, te::common::Scale, uomA, uomB, uomC, and uomD.
|
protected |
Definition at line 88 of file TsUnitsOfMeasureManager.cpp.
References te::common::Singleton< UnitsOfMeasureManager >::getInstance().
|
protected |
Test Case: Find an unit of using one of it's alternative name.
Definition at line 64 of file TsUnitsOfMeasureManager.cpp.
References te::common::Singleton< UnitsOfMeasureManager >::getInstance(), and uomD.
|
protected |
Test Case: Find an unit of using it's identificaton number. void tcFindUomById ();.
Test Case: Find an unit of using it's name.
Definition at line 59 of file TsUnitsOfMeasureManager.cpp.
References te::common::Singleton< UnitsOfMeasureManager >::getInstance(), and uomC.
|
protected |
Test Case: Find an unit of using either it's name or on e of it's alternative names.
Definition at line 69 of file TsUnitsOfMeasureManager.cpp.
References te::common::Singleton< UnitsOfMeasureManager >::getInstance(), and uomD.
|
protected |
Definition at line 75 of file TsUnitsOfMeasureManager.cpp.
References alternativeNames, te::common::Singleton< UnitsOfMeasureManager >::getInstance(), te::common::UnitsOfMeasureManager::getNames(), and uomD.
| void TsUnitsOfMeasureManager::tearDown | ( | ) |
Definition at line 47 of file TsUnitsOfMeasureManager.cpp.
References te::common::UnitsOfMeasureManager::clear(), and te::common::Singleton< UnitsOfMeasureManager >::getInstance().
|
private |
Definition at line 118 of file TsUnitsOfMeasureManager.h.
Referenced by setUp(), and tcGeAltNames().
|
private |
Definition at line 113 of file TsUnitsOfMeasureManager.h.
Referenced by setUp().
|
private |
Definition at line 114 of file TsUnitsOfMeasureManager.h.
Referenced by setUp().
|
private |
Definition at line 115 of file TsUnitsOfMeasureManager.h.
Referenced by setUp(), and tcFindUomByName().
|
private |
Definition at line 116 of file TsUnitsOfMeasureManager.h.
Referenced by setUp(), tcFindUomByAltName(), tcFindUomByNames(), and tcGeAltNames().