1 | // |
---|---|
2 | // DateTimeTest.h |
3 | // |
4 | // Definition of the DateTimeTest class. |
5 | // |
6 | // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. |
7 | // and Contributors. |
8 | // |
9 | // SPDX-License-Identifier: BSL-1.0 |
10 | // |
11 | |
12 | |
13 | #ifndef DateTimeTest_INCLUDED |
14 | #define DateTimeTest_INCLUDED |
15 | |
16 | |
17 | #include "Poco/Foundation.h" |
18 | #include "Poco/CppUnit/TestCase.h" |
19 | |
20 | |
21 | class DateTimeTest: public CppUnit::TestCase |
22 | { |
23 | public: |
24 | DateTimeTest(const std::string& name); |
25 | ~DateTimeTest(); |
26 | |
27 | void testTimestamp(); |
28 | void testJulian(); |
29 | void testGregorian(); |
30 | void testConversions(); |
31 | void testStatics(); |
32 | void testCalcs(); |
33 | void testAMPM(); |
34 | void testRelational(); |
35 | void testArithmetics(); |
36 | void testSwap(); |
37 | void testUsage(); |
38 | void testSetYearDay(); |
39 | void testIsValid(); |
40 | void testDayOfWeek(); |
41 | void testIncrementDecrement(); |
42 | void testUTC(); |
43 | void testLeapSeconds(); |
44 | void testTM(); |
45 | |
46 | void setUp(); |
47 | void tearDown(); |
48 | |
49 | static CppUnit::Test* suite(); |
50 | |
51 | private: |
52 | }; |
53 | |
54 | |
55 | #endif // DateTimeTest_INCLUDED |
56 |