Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/plugins/xml/tests/mymoneyxmlcontenthandler-test.h
- This file was copied from kmymoney/mymoney/tests/mymoneyschedule-test.h.
1 | /* | 1 | /* | ||
---|---|---|---|---|---|
2 | * Copyright 2002-2017 Thomas Baumgart <tbaumgart@kde.org> | ||||
2 | * Copyright 2003 Michael Edwardes <mte@users.sourceforge.net> | 3 | * Copyright 2003 Michael Edwardes <mte@users.sourceforge.net> | ||
3 | * Copyright 2006 Ace Jones <acejones@users.sourceforge.net> | 4 | * Copyright 2004-2006 Ace Jones <acejones@users.sourceforge.net> | ||
5 | * Copyright 2004 Kevin Tambascio <ktambascio@users.sourceforge.net> | ||||
6 | * Copyright 2009-2014 Cristian Oneț <onet.cristian@gmail.com> | ||||
7 | * Copyright 2012 Alessandro Russo <axela74@yahoo.it> | ||||
8 | * Copyright 2016 Christian Dávid <christian-david@web.de> | ||||
9 | * Copyright 2018 Łukasz Wojniłowicz <lukasz.wojnilowicz@gmail.com> | ||||
4 | * | 10 | * | ||
5 | * This program is free software; you can redistribute it and/or | 11 | * This program is free software; you can redistribute it and/or | ||
6 | * modify it under the terms of the GNU General Public License as | 12 | * modify it under the terms of the GNU General Public License as | ||
7 | * published by the Free Software Foundation; either version 2 of | 13 | * published by the Free Software Foundation; either version 2 of | ||
8 | * the License, or (at your option) any later version. | 14 | * the License, or (at your option) any later version. | ||
9 | * | 15 | * | ||
10 | * This program is distributed in the hope that it will be useful, | 16 | * This program is distributed in the hope that it will be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU General Public License for more details. | 19 | * GNU General Public License for more details. | ||
14 | * | 20 | * | ||
15 | * You should have received a copy of the GNU General Public License | 21 | * You should have received a copy of the GNU General Public License | ||
16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 22 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
17 | */ | 23 | */ | ||
18 | 24 | | |||
19 | #ifndef MYMONEYSCHEDULETEST_H | 25 | #ifndef MYMONEYXMLCONTENTHANDLERTEST_H | ||
20 | #define MYMONEYSCHEDULETEST_H | 26 | #define MYMONEYXMLCONTENTHANDLERTEST_H | ||
21 | 27 | | |||
22 | #include <QObject> | 28 | #include <QObject> | ||
23 | 29 | | |||
24 | class MyMoneyScheduleTest : public QObject | 30 | class MyMoneyXmlContentHandlerTest : public QObject | ||
25 | { | 31 | { | ||
26 | Q_OBJECT | 32 | Q_OBJECT | ||
27 | 33 | | |||
28 | private Q_SLOTS: | 34 | private Q_SLOTS: | ||
29 | void testEmptyConstructor(); | 35 | void readKeyValueContainer(); | ||
30 | void testConstructor(); | 36 | void writeKeyValueContainer(); | ||
31 | void testSetFunctions(); | 37 | void readTransaction(); | ||
32 | void testCopyConstructor(); | 38 | void readTransactionEx(); | ||
33 | void testAssignmentConstructor(); | 39 | void writeTransaction(); | ||
40 | void readAccount(); | ||||
41 | void writeAccount(); | ||||
42 | void readWritePayee(); | ||||
43 | void readWriteTag(); | ||||
44 | void readInstitution(); | ||||
45 | void writeInstitution(); | ||||
46 | void readSchedule(); | ||||
47 | void writeSchedule(); | ||||
34 | void testOverdue(); | 48 | void testOverdue(); | ||
35 | void testNextPayment(); | 49 | void testNextPayment(); | ||
36 | void testAddHalfMonths(); | 50 | void testNextPaymentOnLastDayOfMonth(); | ||
37 | void testPaymentDates(); | 51 | void testPaymentDates(); | ||
38 | void testWriteXML(); | | |||
39 | void testReadXML(); | | |||
40 | void testHasReferenceTo(); | 52 | void testHasReferenceTo(); | ||
41 | void testAdjustedNextDueDate(); | | |||
42 | void testModifyNextDueDate(); | | |||
43 | void testDaysBetweenEvents(); | | |||
44 | void testEventsPerYear(); | | |||
45 | void testOccurrenceToString(); | | |||
46 | void testOccurrencePeriodToString(); | | |||
47 | void testOccurrencePeriod(); | | |||
48 | void testSimpleToFromCompoundOccurrence(); | | |||
49 | void testProcessingDates(); | | |||
50 | void testPaidEarlyOneTime(); | 53 | void testPaidEarlyOneTime(); | ||
51 | void testAdjustedNextPayment(); | | |||
52 | void testReplaceId(); | 54 | void testReplaceId(); | ||
53 | void testAdjustedWhenItWillEnd(); | 55 | | ||
54 | void testProcessLastDayInMonth(); | | |||
55 | void testNextPaymentOnLastDayOfMonth(); | | |||
56 | void testElementNames(); | | |||
57 | void testAttributeNames(); | | |||
58 | }; | 56 | }; | ||
59 | 57 | | |||
60 | #endif | 58 | #endif |