1 /*
2  * This file is part of KMyMoney, A Personal Finance Manager by KDE
3  * Copyright (C) 2014 Christian Dávid <christian-david@web.de>
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * as published by the Free Software Foundation; either version 2
8  * of the License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * 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/>.
17  */
18 
19 #ifndef INTERNATIONALACCOUNTIDENTIFIERTEST_H
20 #define INTERNATIONALACCOUNTIDENTIFIERTEST_H
21 
22 #include <QObject>
23 
24 #define KMM_MYMONEY_UNIT_TESTABLE friend class internationalAccountIdentifierTest;
25 
26 class internationalAccountIdentifierTest : public QObject
27 {
28   Q_OBJECT
29 
30   bool dataInstalled(const QString& countryCode);
31 
32 private Q_SLOTS:
33   void initTestCase();
34   void cleanupTestCase();
35 
36   void init();
37   void cleanup();
38 
39   void comparison();
40 
41   void ibanChecksum_data();
42   void ibanChecksum();
43 
44   void paperformatIban_data();
45   void paperformatIban();
46 
47   void electronicformatIban_data();
48   void electronicformatIban();
49 
50   void setIban_data();
51   void setIban();
52 
53   void setBic_data();
54   void setBic();
55 
56   void equalOperator_data();
57   void equalOperator();
58 
59   void uneqalOperator_data();
60   void uneqalOperator();
61 
62   void getProperties_data();
63   void getProperties();
64 
65   void iban2bic_data();
66   void iban2bic();
67 
68   void nameByBic_data();
69   void nameByBic();
70 
71   void bicAndNameByIban_data();
72   void bicAndNameByIban();
73 
74   void qStringNullAndEmpty();
75 
76   void bicAllocated_data();
77   void bicAllocated();
78 };
79 
80 #endif // INTERNATIONALACCOUNTIDENTIFIERTEST_H
81