Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/mymoney/tests/mymoneyreport-test.cpp
Show All 30 Lines | |||||
31 | 31 | | |||
32 | void MyMoneyReportTest::cleanup() | 32 | void MyMoneyReportTest::cleanup() | ||
33 | { | 33 | { | ||
34 | delete m; | 34 | delete m; | ||
35 | } | 35 | } | ||
36 | 36 | | |||
37 | void MyMoneyReportTest::testElementNames() | 37 | void MyMoneyReportTest::testElementNames() | ||
38 | { | 38 | { | ||
39 | for (auto i = (int)Report::Element::Payee; i <= (int)Report::Element::AccountGroup; ++i) { | 39 | for (auto i = (int)Reporting::Element::Payee; i <= (int)Reporting::Element::AccountGroup; ++i) { | ||
40 | auto isEmpty = MyMoneyReportPrivate::getElName(static_cast<Report::Element>(i)).isEmpty(); | 40 | auto isEmpty = MyMoneyReportPrivate::getElName(static_cast<Reporting::Element>(i)).isEmpty(); | ||
41 | if (isEmpty) | 41 | if (isEmpty) | ||
42 | qWarning() << "Empty element's name " << i; | 42 | qWarning() << "Empty element's name " << i; | ||
43 | QVERIFY(!isEmpty); | 43 | QVERIFY(!isEmpty); | ||
44 | } | 44 | } | ||
45 | } | 45 | } | ||
46 | 46 | | |||
47 | void MyMoneyReportTest::testAttributeNames() | 47 | void MyMoneyReportTest::testAttributeNames() | ||
48 | { | 48 | { | ||
49 | for (auto i = (int)Report::Attribute::ID; i < (int)Report::Attribute::LastAttribute; ++i) { | 49 | for (auto i = (int)Reporting::Attribute::ID; i < (int)Reporting::Attribute::LastAttribute; ++i) { | ||
50 | auto isEmpty = MyMoneyReportPrivate::getAttrName(static_cast<Report::Attribute>(i)).isEmpty(); | 50 | auto isEmpty = MyMoneyReportPrivate::getAttrName(static_cast<Reporting::Attribute>(i)).isEmpty(); | ||
51 | if (isEmpty) | 51 | if (isEmpty) | ||
52 | qWarning() << "Empty attribute's name " << i; | 52 | qWarning() << "Empty attribute's name " << i; | ||
53 | QVERIFY(!isEmpty); | 53 | QVERIFY(!isEmpty); | ||
54 | } | 54 | } | ||
55 | } | 55 | } |