mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-27 03:43:25 +01:00
ce797f7700
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
56 lines
982 B
C++
56 lines
982 B
C++
//
|
|
// 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.
|
|
//
|
|
// SPDX-License-Identifier: BSL-1.0
|
|
//
|
|
|
|
|
|
#ifndef DateTimeTest_INCLUDED
|
|
#define DateTimeTest_INCLUDED
|
|
|
|
|
|
#include "Poco/Foundation.h"
|
|
#include "Poco/CppUnit/TestCase.h"
|
|
|
|
|
|
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
|