2012-04-29 18:52:25 +00:00
|
|
|
//
|
|
|
|
// DateTimeTest.h
|
|
|
|
//
|
|
|
|
// $Id: //poco/1.4/Foundation/testsuite/src/DateTimeTest.h#1 $
|
|
|
|
//
|
|
|
|
// Definition of the DateTimeTest class.
|
|
|
|
//
|
|
|
|
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
|
|
|
|
// and Contributors.
|
|
|
|
//
|
2014-05-04 21:02:42 +02:00
|
|
|
// SPDX-License-Identifier: BSL-1.0
|
2012-04-29 18:52:25 +00:00
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef DateTimeTest_INCLUDED
|
|
|
|
#define DateTimeTest_INCLUDED
|
|
|
|
|
|
|
|
|
|
|
|
#include "Poco/Foundation.h"
|
2016-01-08 00:17:13 +01:00
|
|
|
#include "Poco/CppUnit/TestCase.h"
|
2012-04-29 18:52:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
class DateTimeTest: public CppUnit::TestCase
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
DateTimeTest(const std::string& name);
|
|
|
|
~DateTimeTest();
|
|
|
|
|
|
|
|
void testTimestamp();
|
|
|
|
void testJulian();
|
|
|
|
void testGregorian();
|
|
|
|
void testConversions();
|
|
|
|
void testStatics();
|
|
|
|
void testCalcs();
|
|
|
|
void testAMPM();
|
|
|
|
void testRelational();
|
|
|
|
void testArithmetics();
|
|
|
|
void testSwap();
|
|
|
|
void testUsage();
|
|
|
|
void testSetYearDay();
|
|
|
|
void testIsValid();
|
|
|
|
void testDayOfWeek();
|
|
|
|
void testIncrementDecrement();
|
|
|
|
void testUTC();
|
|
|
|
|
|
|
|
void setUp();
|
|
|
|
void tearDown();
|
|
|
|
|
|
|
|
static CppUnit::Test* suite();
|
|
|
|
|
|
|
|
private:
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // DateTimeTest_INCLUDED
|