TsTimeInstant Class Reference

Test suite for the TimeInstant Class. More...

#include <TsTimeInstant.h>

Inheritance diagram for TsTimeInstant:

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 tcGetDate ()
 Test Case: It returns the date associated to time instant. More...
 
void tcGetTime ()
 Test Case:It returns the time duration associated to time instant. More...
 
void tcGetTimeInstant ()
 Test Case: It returns the boost time instant type. More...
 
void tcTimeInstant ()
 Test Case: Empty Constructor. More...
 
void tcTimeInstant2 ()
 Test Case: Constructor from a date and time offset. More...
 
void tcTimeInstant3 ()
 Test Case: Constructor from a boost time instant type. More...
 
void tcToString ()
 It returns the time instant in the ISO textual format (YYYYMMDDTHHMMSS,fffffffff) where T is the date-time separator. More...
 

Private Member Functions

 CPPUNIT_TEST (tcTimeInstant)
 
 CPPUNIT_TEST (tcTimeInstant2)
 
 CPPUNIT_TEST (tcTimeInstant3)
 
 CPPUNIT_TEST (tcGetTimeInstant)
 
 CPPUNIT_TEST (tcGetDate)
 
 CPPUNIT_TEST (tcGetTime)
 
 CPPUNIT_TEST (tcCheckOperators)
 
 CPPUNIT_TEST (tcClone)
 
 CPPUNIT_TEST (tcToString)
 
 CPPUNIT_TEST_SUITE (TsTimeInstant)
 
 CPPUNIT_TEST_SUITE_END ()
 

Detailed Description

Test suite for the TimeInstant Class.

This test suite will check the following:

Definition at line 60 of file TsTimeInstant.h.

Member Function Documentation

TsTimeInstant::CPPUNIT_TEST ( tcTimeInstant  )
private
TsTimeInstant::CPPUNIT_TEST ( tcTimeInstant2  )
private
TsTimeInstant::CPPUNIT_TEST ( tcTimeInstant3  )
private
TsTimeInstant::CPPUNIT_TEST ( tcGetTimeInstant  )
private
TsTimeInstant::CPPUNIT_TEST ( tcGetDate  )
private
TsTimeInstant::CPPUNIT_TEST ( tcGetTime  )
private
TsTimeInstant::CPPUNIT_TEST ( tcCheckOperators  )
private
TsTimeInstant::CPPUNIT_TEST ( tcClone  )
private
TsTimeInstant::CPPUNIT_TEST ( tcToString  )
private
TsTimeInstant::CPPUNIT_TEST_SUITE ( TsTimeInstant  )
private
TsTimeInstant::CPPUNIT_TEST_SUITE_END ( )
private
void TsTimeInstant::setUp ( )

Definition at line 37 of file TsTimeInstant.cpp.

void TsTimeInstant::tcCheckOperators ( )
protected

Test Case: Check operators (==, >,<, !=, -).

Definition at line 120 of file TsTimeInstant.cpp.

References de, ds, td, and te::dt::TimeInstant::toString().

void TsTimeInstant::tcClone ( )
protected

Test Case: Clone this object and return AbstractData.

Definition at line 161 of file TsTimeInstant.cpp.

References te::dt::TimeInstant::clone(), and TT.

void TsTimeInstant::tcGetDate ( )
protected

Test Case: It returns the date associated to time instant.

Definition at line 98 of file TsTimeInstant.cpp.

References ds, te::dt::TimeInstant::getDate(), te::dt::Date::getDay(), te::dt::Date::getMonth(), te::dt::Date::getYear(), and td.

void TsTimeInstant::tcGetTime ( )
protected
void TsTimeInstant::tcTimeInstant ( )
protected

Test Case: Empty Constructor.

Definition at line 45 of file TsTimeInstant.cpp.

References te::dt::TimeInstant::toString(), and TT.

void TsTimeInstant::tcToString ( )
protected

It returns the time instant in the ISO textual format (YYYYMMDDTHHMMSS,fffffffff) where T is the date-time separator.

Definition at line 173 of file TsTimeInstant.cpp.

References te::dt::TimeInstant::clone(), te::dt::TimeInstant::toString(), and TT.

void TsTimeInstant::tearDown ( )

Definition at line 41 of file TsTimeInstant.cpp.


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