Commit e609c9f5 authored by Laurent Montel's avatar Laurent Montel 😁

improve unittest

parent 9eb8b648
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
*/ */
#include "imapaclattributetest.h" #include "imapaclattributetest.h"
#include "../imapaclattribute.h"
#include <qtest_kde.h> #include <qtest_kde.h>
ImapAclAttributeTest::ImapAclAttributeTest(QObject *parent) ImapAclAttributeTest::ImapAclAttributeTest(QObject *parent)
: QObject(parent) : QObject(parent)
...@@ -28,4 +29,16 @@ ImapAclAttributeTest::~ImapAclAttributeTest() ...@@ -28,4 +29,16 @@ ImapAclAttributeTest::~ImapAclAttributeTest()
} }
void ImapAclAttributeTest::shouldHaveDefaultValue()
{
PimCommon::ImapAclAttribute attr;
QVERIFY(attr.oldRights().isEmpty());
QVERIFY(attr.rights().isEmpty());
}
void ImapAclAttributeTest::shouldAssignValue()
{
}
QTEST_KDEMAIN(ImapAclAttributeTest, NoGUI) QTEST_KDEMAIN(ImapAclAttributeTest, NoGUI)
...@@ -25,6 +25,9 @@ class ImapAclAttributeTest : public QObject ...@@ -25,6 +25,9 @@ class ImapAclAttributeTest : public QObject
public: public:
explicit ImapAclAttributeTest(QObject *parent = 0); explicit ImapAclAttributeTest(QObject *parent = 0);
~ImapAclAttributeTest(); ~ImapAclAttributeTest();
private Q_SLOTS:
void shouldHaveDefaultValue();
void shouldAssignValue();
}; };
#endif // IMAPACLATTRIBUTETEST_H #endif // IMAPACLATTRIBUTETEST_H
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment