Commit 0f0d5f57 authored by Laurent Montel's avatar Laurent Montel 😁

Verify type too

parent 7f453994
......@@ -70,4 +70,10 @@ void CollectionAnnotationsAttributeTest::shouldCloneAttribute()
delete result;
}
void CollectionAnnotationsAttributeTest::shouldHaveType()
{
MailCommon::CollectionAnnotationsAttribute attr;
QCOMPARE(attr.type(), QByteArray("collectionannotations"));
}
QTEST_KDEMAIN(CollectionAnnotationsAttributeTest, NoGUI)
......@@ -32,6 +32,7 @@ private Q_SLOTS:
void shouldAssignAttribute();
void shouldDeserializedAttribute();
void shouldCloneAttribute();
void shouldHaveType();
};
#endif // COLLECTIONANNOTATIONSATTRIBUTETEST_H
......@@ -171,4 +171,10 @@ void ExpireCollectionAttributeTest::shouldSerializedValue()
QVERIFY(attr == result);
}
void ExpireCollectionAttributeTest::shouldHaveType()
{
MailCommon::ExpireCollectionAttribute attr;
QCOMPARE(attr.type(), QByteArray("expirationcollectionattribute"));
}
QTEST_KDEMAIN(ExpireCollectionAttributeTest, NoGUI)
......@@ -34,6 +34,7 @@ private Q_SLOTS:
void shouldCloneAttr();
void shouldSerializedValue_data();
void shouldSerializedValue();
void shouldHaveType();
};
#endif // EXPIRECOLLECTIONATTRIBUTETEST_H
......@@ -67,4 +67,10 @@ void NewMailNotifierAttributeTest::shouldCloneAttribute()
delete result;
}
void NewMailNotifierAttributeTest::shouldHaveType()
{
MailCommon::NewMailNotifierAttribute attr;
QCOMPARE(attr.type(), QByteArray("newmailnotifierattribute"));
}
QTEST_KDEMAIN(NewMailNotifierAttributeTest, NoGUI)
......@@ -32,6 +32,7 @@ private Q_SLOTS:
void shouldSetIgnoreNotification();
void shouldSerializedData();
void shouldCloneAttribute();
void shouldHaveType();
};
#endif // NEWMAILNOTIFIERATTRIBUTETEST_H
......@@ -88,4 +88,10 @@ void ImapAclAttributeTest::shouldSerializedAttribute()
QVERIFY(attr==result);
}
void ImapAclAttributeTest::shouldHaveType()
{
PimCommon::ImapAclAttribute attr;
QCOMPARE(attr.type(), QByteArray("imapacl"));
}
QTEST_KDEMAIN(ImapAclAttributeTest, NoGUI)
......@@ -31,6 +31,7 @@ private Q_SLOTS:
void shouldAssignValue();
void shouldCloneAttr();
void shouldSerializedAttribute();
void shouldHaveType();
};
#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