26 #include "../../src/terralib/common/UnitOfMeasure.h" 88 CPPUNIT_ASSERT(a == 1852);
89 CPPUNIT_ASSERT(b == 0);
90 CPPUNIT_ASSERT(c == 0);
91 CPPUNIT_ASSERT(d == 1);
CPPUNIT_TEST_SUITE_REGISTRATION(TsUnitOfMeasure)
te::common::UnitOfMeasure * uomB
void tcIsBaseUnit()
Test Case: Checks if it is returning true for a base unit and false for non-base units.
MeasureType getType() const
Returns the unit of measure type.
void getConversionFactors(double &A, double &B, double &C, double &D) const
Returns the conversion factors to convert the unit to its base unit.
unsigned int getId() const
Returns the unit of measure identification.
void tcGetName()
Test Case: Checks the unit of measure name.
const std::string & getDescription() const
Returns the unit of measure description.
const std::string & getName() const
Returns the unit of measure oficial name.
void tcGetDescription()
Test Case: Checks the unit of measure description.
void tcGetBaseUnitId()
Test Case: Checks the base unit id from which this unit derives of.
void tcGetConversionFactors()
Test Case: Checks if the conversion factors to convert the unit to its base unit are correct...
void tcGetType()
Test Case: Checks the unit of measure type.
void tcGetSymbol()
Test Case: Checks the unit of measure symbol.
static te::dt::DateTime d(2010, 8, 9, 15, 58, 39)
te::common::UnitOfMeasure * uomA
const std::string & getSymbol() const
Returns the unit of measure symbol.
A class to represent units of measure.
void tcGetId()
Test Case: Checks the unit of measure identification.
te::common::UnitOfMeasure * uomC
double getConversionValue() const
Returns a multiplicative value to convert the unit to its base unit.
void tcGetConversionValue()
Test Case: Checks the multiplicative value to convert the unit to its base unit.
const unsigned int getBaseUnitId() const
Returns the base unit id from which this unit derives of.
te::common::UnitOfMeasure * uomD
bool isBaseUnit() const
Returns true if this is a base unit; otherwise returns false.