TsDate Class Reference

Test suite for the Date, DateDuration and DatePeriod Classes. More...

#include <TsDate.h>

Inheritance diagram for TsDate:

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 ()
 

Detailed Description

Test suite for the Date, DateDuration and DatePeriod Classes.

This test suite will check the following:

Definition at line 60 of file TsDate.h.

Member Function Documentation

TsDate::CPPUNIT_TEST ( tcDate  )
private
TsDate::CPPUNIT_TEST ( tcDateCheck  )
private
TsDate::CPPUNIT_TEST ( tcDateConstructor  )
private
TsDate::CPPUNIT_TEST ( tcDateTimeDuration  )
private
TsDate::CPPUNIT_TEST ( tcCheckOperators  )
private
TsDate::CPPUNIT_TEST ( tcClone  )
private
TsDate::CPPUNIT_TEST ( tcToString  )
private
TsDate::CPPUNIT_TEST ( tcDateDuration  )
private
TsDate::CPPUNIT_TEST ( tcDatePeriod  )
private
TsDate::CPPUNIT_TEST_SUITE ( TsDate  )
private
TsDate::CPPUNIT_TEST_SUITE_END ( )
private
void TsDate::setUp ( )

Definition at line 44 of file TsDate.cpp.

void TsDate::tcCheckOperators ( )
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().

void TsDate::tcClone ( )
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.

void TsDate::tcDate ( )
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().

void TsDate::tcDateCheck ( )
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().

void TsDate::tcDateConstructor ( )
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().

void TsDate::tcDateDuration ( )
protected

Definition at line 191 of file TsDate.cpp.

References te::dt::DateDuration::clone(), d(), and te::dt::DateDuration::toString().

void TsDate::tcToString ( )
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.


The documentation for this class was generated from the following files: