Test suite for the Date, DateDuration and DatePeriod Classes. More...
#include <TsDate.h>
Public Member Functions | |
| void | setUp () |
| void | tearDown () |
Protected Member Functions | |
| void | tcCheckOperators () |
| Test Case: Check operators (==, >,<, !=, -). More... | |
| void | tcClone () |
| Test Case: Clone this object and return AbstractData. More... | |
| void | tcDate () |
| Test Case: It creates a date time with local date. The date and time are obtained from the system clock. More... | |
| void | tcDateCheck () |
| Test Case: It checks date values (YY,MM,DD) More... | |
| void | tcDateConstructor () |
| Test Case: Copy constructor. More... | |
| void | tcDateDuration () |
| void | tcDatePeriod () |
| void | tcDateTimeDuration () |
| Test Case: Check TimeInstant. More... | |
| void | tcToString () |
| It returns the date in the ISO textual format (YYYYMMDD). More... | |
Private Member Functions | |
| CPPUNIT_TEST (tcDate) | |
| CPPUNIT_TEST (tcDateCheck) | |
| CPPUNIT_TEST (tcDateConstructor) | |
| CPPUNIT_TEST (tcDateTimeDuration) | |
| CPPUNIT_TEST (tcCheckOperators) | |
| CPPUNIT_TEST (tcClone) | |
| CPPUNIT_TEST (tcToString) | |
| CPPUNIT_TEST (tcDateDuration) | |
| CPPUNIT_TEST (tcDatePeriod) | |
| CPPUNIT_TEST_SUITE (TsDate) | |
| CPPUNIT_TEST_SUITE_END () | |
Test suite for the Date, DateDuration and DatePeriod Classes.
This test suite will check the following:
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| void TsDate::setUp | ( | ) |
Definition at line 44 of file TsDate.cpp.
|
protected |
Test Case: Check operators (==, >,<, !=, -).
Definition at line 141 of file TsDate.cpp.
References te::dt::Date::clone(), de, dmar, ds, and te::dt::Date::toString().
|
protected |
Test Case: Clone this object and return AbstractData.
Definition at line 167 of file TsDate.cpp.
References te::dt::Date::clone(), d(), and ds.
|
protected |
Test Case: It creates a date time with local date. The date and time are obtained from the system clock.
Definition at line 52 of file TsDate.cpp.
References d(), dx, te::dt::Date::getDay(), te::dt::Date::getMonth(), te::dt::Date::getYear(), and te::dt::Date::toString().
|
protected |
Test Case: It checks date values (YY,MM,DD)
Definition at line 69 of file TsDate.cpp.
References d28, d29, d30, d31, de, ds, te::dt::Date::getDay(), te::dt::Date::getMonth(), te::dt::Date::getYear(), and te::dt::Date::toString().
|
protected |
Test Case: Copy constructor.
Definition at line 107 of file TsDate.cpp.
References d(), te::dt::Date::getDay(), te::dt::Date::getMonth(), and te::dt::Date::getYear().
|
protected |
Definition at line 191 of file TsDate.cpp.
References te::dt::DateDuration::clone(), d(), and te::dt::DateDuration::toString().
|
protected |
Definition at line 220 of file TsDate.cpp.
References te::dt::DatePeriod::clone(), d(), de, dg(), ds, te::dt::DatePeriod::getDatePeriod(), te::dt::DatePeriod::getFinalDate(), te::dt::DatePeriod::getInitialDate(), te::dt::Date::toString(), and te::dt::DatePeriod::toString().
|
protected |
Test Case: Check TimeInstant.
Definition at line 119 of file TsDate.cpp.
References dt, dx, te::dt::TimeInstant::getDate(), te::dt::Date::getDay(), te::dt::TimeDuration::getHours(), te::dt::TimeDuration::getMinutes(), te::dt::Date::getMonth(), te::dt::TimeDuration::getSeconds(), te::dt::TimeInstant::getTime(), and te::dt::Date::getYear().
|
protected |
It returns the date in the ISO textual format (YYYYMMDD).
Definition at line 178 of file TsDate.cpp.
References te::dt::Date::clone(), d(), ds, and te::dt::Date::toString().
| void TsDate::tearDown | ( | ) |
Definition at line 48 of file TsDate.cpp.