| 1 | // |
|---|---|
| 2 | // DateTimeParserTest.h |
| 3 | // |
| 4 | // Definition of the DateTimeParserTest 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 DateTimeParserTest_INCLUDED |
| 14 | #define DateTimeParserTest_INCLUDED |
| 15 | |
| 16 | |
| 17 | #include "Poco/Foundation.h" |
| 18 | #include "Poco/CppUnit/TestCase.h" |
| 19 | |
| 20 | |
| 21 | class DateTimeParserTest: public CppUnit::TestCase |
| 22 | { |
| 23 | public: |
| 24 | DateTimeParserTest(const std::string& name); |
| 25 | ~DateTimeParserTest(); |
| 26 | |
| 27 | void testISO8601(); |
| 28 | void testISO8601Frac(); |
| 29 | void testRFC822(); |
| 30 | void testRFC1123(); |
| 31 | void testHTTP(); |
| 32 | void testRFC850(); |
| 33 | void testRFC1036(); |
| 34 | void testASCTIME(); |
| 35 | void testSORTABLE(); |
| 36 | void testCustom(); |
| 37 | void testGuess(); |
| 38 | void testParseMonth(); |
| 39 | void testParseDayOfWeek(); |
| 40 | |
| 41 | void setUp(); |
| 42 | void tearDown(); |
| 43 | |
| 44 | static CppUnit::Test* suite(); |
| 45 | |
| 46 | private: |
| 47 | void testBad(const std::string& fmt, const std::string& dateStr, int tzd); |
| 48 | }; |
| 49 | |
| 50 | |
| 51 | #endif // DateTimeParserTest_INCLUDED |
| 52 |