blob: 761c651c8d9e74a630e92ce2e4e370fa97c92364 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
|
/***************************************************************************
mymoneyseqaccessmgrtest.h
-------------------
copyright : (C) 2002 by Thomas Baumgart
email : ipwizard@users.sourceforge.net
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef __MYMONEYSETQACCESSMGRTEST_H__
#define __MYMONEYSETQACCESSMGRTEST_H__
#include <cppunit/TestCaller.h>
#include <cppunit/TestCase.h>
#include <cppunit/TestSuite.h>
#include <cppunit/extensions/HelperMacros.h>
#include "../autotest.h"
#define private public
#define protected public
#include "../mymoneyobject.h"
#include "mymoneyseqaccessmgr.h"
#undef private
class MyMoneySeqAccessMgrTest : public CppUnit::TestFixture {
CPPUNIT_TEST_SUITE(MyMoneySeqAccessMgrTest);
CPPUNIT_TEST(testEmptyConstructor);
CPPUNIT_TEST(testSetFunctions);
CPPUNIT_TEST(testSupportFunctions);
CPPUNIT_TEST(testIsStandardAccount);
CPPUNIT_TEST(testNewAccount);
CPPUNIT_TEST(testAddNewAccount);
CPPUNIT_TEST(testReparentAccount);
CPPUNIT_TEST(testAddInstitution);
CPPUNIT_TEST(testInstitution);
CPPUNIT_TEST(testAccount2Institution);
CPPUNIT_TEST(testModifyAccount);
CPPUNIT_TEST(testModifyInstitution);
CPPUNIT_TEST(testAddTransactions);
CPPUNIT_TEST(testTransactionCount);
CPPUNIT_TEST(testBalance);
CPPUNIT_TEST(testModifyTransaction);
CPPUNIT_TEST(testRemoveUnusedAccount);
CPPUNIT_TEST(testRemoveUsedAccount);
CPPUNIT_TEST(testRemoveInstitution);
CPPUNIT_TEST(testRemoveTransaction);
CPPUNIT_TEST(testTransactionList);
CPPUNIT_TEST(testAddPayee);
CPPUNIT_TEST(testSetAccountName);
CPPUNIT_TEST(testModifyPayee);
CPPUNIT_TEST(testPayeeName);
CPPUNIT_TEST(testRemovePayee);
CPPUNIT_TEST(testRemoveAccountFromTree);
CPPUNIT_TEST(testAssignment);
CPPUNIT_TEST(testDuplicate);
CPPUNIT_TEST(testAddSchedule);
CPPUNIT_TEST(testModifySchedule);
CPPUNIT_TEST(testRemoveSchedule);
CPPUNIT_TEST(testSchedule);
CPPUNIT_TEST(testScheduleList);
CPPUNIT_TEST(testAddCurrency);
CPPUNIT_TEST(testModifyCurrency);
CPPUNIT_TEST(testRemoveCurrency);
CPPUNIT_TEST(testCurrency);
CPPUNIT_TEST(testCurrencyList);
CPPUNIT_TEST(testAccountList);
CPPUNIT_TEST(testLoaderFunctions);
CPPUNIT_TEST_SUITE_END();
protected:
MyMoneySeqAccessMgr *m;
public:
MyMoneySeqAccessMgrTest();
void setUp();
void tearDown();
void testEmptyConstructor();
void testSetFunctions();
void testIsStandardAccount();
void testNewAccount();
void testAccount();
void testAddNewAccount();
void testAddInstitution();
void testInstitution();
void testAccount2Institution();
void testModifyAccount();
void testModifyInstitution();
void testReparentAccount();
void testAddTransactions();
void testTransactionCount();
void testBalance();
void testModifyTransaction();
void testRemoveUnusedAccount();
void testRemoveUsedAccount();
void testRemoveInstitution();
void testRemoveTransaction();
void testTransactionList();
void testAddPayee();
void testSetAccountName();
void testModifyPayee();
void testPayeeName();
void testRemovePayee();
void testRemoveAccountFromTree();
void testAssignment();
void testEquality(const MyMoneySeqAccessMgr* t);
void testDuplicate();
void testAddSchedule();
void testSchedule();
void testModifySchedule();
void testRemoveSchedule();
void testSupportFunctions();
void testScheduleList();
void testAddCurrency();
void testModifyCurrency();
void testRemoveCurrency();
void testCurrency();
void testCurrencyList();
void testAccountList();
void testLoaderFunctions();
};
#endif
|