Commit 0883ff58 authored by Laurent Montel's avatar Laurent Montel 😁

Improve unittest

parent 0f0d5f57
......@@ -69,4 +69,10 @@ void ScamAttributeTest::shouldCloneAttribute()
delete cloneAttr;
}
void ScamAttributeTest::shouldHaveType()
{
MessageViewer::ScamAttribute attr;
QCOMPARE(attr.type(), QByteArray("ScamAttribute"));
}
QTEST_KDEMAIN(ScamAttributeTest, NoGUI)
......@@ -34,6 +34,7 @@ private Q_SLOTS:
void shouldAffectValue();
void shouldDeserializeValue();
void shouldCloneAttribute();
void shouldHaveType();
};
#endif // SCAMATTRIBUTETEST_H
......@@ -64,6 +64,12 @@ void NoteAlarmAttributeTest::shouldSerializeAttr()
QVERIFY(attr == result);
}
void NoteAlarmAttributeTest::shouldHaveType()
{
NoteShared::NoteAlarmAttribute attr;
QCOMPARE(attr.type(), QByteArray("NoteAlarmAttribute"));
}
QTEST_KDEMAIN(NoteAlarmAttributeTest, NoGUI)
......@@ -31,6 +31,7 @@ private Q_SLOTS:
void shouldAssignValue();
void shouldCloneAttr();
void shouldSerializeAttr();
void shouldHaveType();
};
#endif // NOTEALARMATTRIBUTETEST_H
......@@ -76,5 +76,11 @@ void NoteDisplayAttributeTest::shouldEqualWhenCloning()
delete attr2;
}
void NoteDisplayAttributeTest::shouldHaveType()
{
NoteShared::NoteDisplayAttribute attribute;
QCOMPARE(attribute.type(), QByteArray("NoteDisplayAttribute"));
}
QTEST_KDEMAIN(NoteDisplayAttributeTest, NoGUI)
......@@ -29,6 +29,7 @@ public:
private Q_SLOTS:
void shouldHaveDefaultValue();
void shouldEqualWhenCloning();
void shouldHaveType();
};
#endif // NOTEDISPLAYATTRIBUTETEST_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