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

improve unittest

parent 9eb8b648
......@@ -16,6 +16,7 @@
*/
#include "imapaclattributetest.h"
#include "../imapaclattribute.h"
#include <qtest_kde.h>
ImapAclAttributeTest::ImapAclAttributeTest(QObject *parent)
: QObject(parent)
......@@ -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)
......@@ -25,6 +25,9 @@ class ImapAclAttributeTest : public QObject
public:
explicit ImapAclAttributeTest(QObject *parent = 0);
~ImapAclAttributeTest();
private Q_SLOTS:
void shouldHaveDefaultValue();
void shouldAssignValue();
};
#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