From dadc34655c3ab961b0b0b94a10eaaba710f0b5e8 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 4 Jul 2011 22:38:03 +0000 Subject: Added kmymoney git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmymoney@1239792 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- .../mymoney/storage/mymoneyseqaccessmgrtest.h | 131 +++++++++++++++++++++ 1 file changed, 131 insertions(+) create mode 100644 kmymoney2/mymoney/storage/mymoneyseqaccessmgrtest.h (limited to 'kmymoney2/mymoney/storage/mymoneyseqaccessmgrtest.h') diff --git a/kmymoney2/mymoney/storage/mymoneyseqaccessmgrtest.h b/kmymoney2/mymoney/storage/mymoneyseqaccessmgrtest.h new file mode 100644 index 0000000..b9fa763 --- /dev/null +++ b/kmymoney2/mymoney/storage/mymoneyseqaccessmgrtest.h @@ -0,0 +1,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 __MYMONEYSEQACCESSMGRTEST_H__ +#define __MYMONEYSEQACCESSMGRTEST_H__ + +#include +#include +#include +#include + +#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 -- cgit v1.2.1