35 std::string altNameA =
"AltNameA";
36 std::string altNameB =
"AltNameB";
77 std::vector<std::string> namesOutput;
82 for(std::size_t i = 0; i < namesOutput.size(); ++i)
void tcFindUomByAltName()
Test Case: Find an unit of using one of it's alternative name.
te::common::UnitOfMeasurePtr uomB
void insert(UnitOfMeasurePtr &uom)
Inserts a new unit of measure to be managed.
void tcFindUomByNames()
Test Case: Find an unit of using either it's name or on e of it's alternative names.
CPPUNIT_TEST_SUITE_REGISTRATION(TsUnitsOfMeasureManager)
void clear()
Removes all units from the catalogue.
void getNames(UnitOfMeasurePtr &uom, std::vector< std::string > &names) const
Retrieves the alternative names for a unit of measure.
static UnitsOfMeasureManager & getInstance()
It returns a reference to the singleton instance.
Test suite for the Units of Measure Manager Class.
te::common::UnitOfMeasurePtr uomC
te::common::UnitOfMeasurePtr uomA
Test suite for the Units of Measure Manager class.
boost::shared_ptr< UnitOfMeasure > UnitOfMeasurePtr
void tcFindUomByName()
Test Case: Find an unit of using it's identificaton number. void tcFindUomById ();.
A class to represent units of measure.
std::vector< std::string > alternativeNames
te::common::UnitOfMeasurePtr uomD