Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Unmaintained
KDE Pim
Commits
0883ff58
Commit
0883ff58
authored
Dec 30, 2014
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve unittest
parent
0f0d5f57
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
0 deletions
+21
-0
messageviewer/scamdetection/tests/scamattributetest.cpp
messageviewer/scamdetection/tests/scamattributetest.cpp
+6
-0
messageviewer/scamdetection/tests/scamattributetest.h
messageviewer/scamdetection/tests/scamattributetest.h
+1
-0
noteshared/attributes/tests/notealarmattributetest.cpp
noteshared/attributes/tests/notealarmattributetest.cpp
+6
-0
noteshared/attributes/tests/notealarmattributetest.h
noteshared/attributes/tests/notealarmattributetest.h
+1
-0
noteshared/attributes/tests/notedisplayattributetest.cpp
noteshared/attributes/tests/notedisplayattributetest.cpp
+6
-0
noteshared/attributes/tests/notedisplayattributetest.h
noteshared/attributes/tests/notedisplayattributetest.h
+1
-0
No files found.
messageviewer/scamdetection/tests/scamattributetest.cpp
View file @
0883ff58
...
...
@@ -69,4 +69,10 @@ void ScamAttributeTest::shouldCloneAttribute()
delete
cloneAttr
;
}
void
ScamAttributeTest
::
shouldHaveType
()
{
MessageViewer
::
ScamAttribute
attr
;
QCOMPARE
(
attr
.
type
(),
QByteArray
(
"ScamAttribute"
));
}
QTEST_KDEMAIN
(
ScamAttributeTest
,
NoGUI
)
messageviewer/scamdetection/tests/scamattributetest.h
View file @
0883ff58
...
...
@@ -34,6 +34,7 @@ private Q_SLOTS:
void
shouldAffectValue
();
void
shouldDeserializeValue
();
void
shouldCloneAttribute
();
void
shouldHaveType
();
};
#endif // SCAMATTRIBUTETEST_H
noteshared/attributes/tests/notealarmattributetest.cpp
View file @
0883ff58
...
...
@@ -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
)
noteshared/attributes/tests/notealarmattributetest.h
View file @
0883ff58
...
...
@@ -31,6 +31,7 @@ private Q_SLOTS:
void
shouldAssignValue
();
void
shouldCloneAttr
();
void
shouldSerializeAttr
();
void
shouldHaveType
();
};
#endif // NOTEALARMATTRIBUTETEST_H
noteshared/attributes/tests/notedisplayattributetest.cpp
View file @
0883ff58
...
...
@@ -76,5 +76,11 @@ void NoteDisplayAttributeTest::shouldEqualWhenCloning()
delete
attr2
;
}
void
NoteDisplayAttributeTest
::
shouldHaveType
()
{
NoteShared
::
NoteDisplayAttribute
attribute
;
QCOMPARE
(
attribute
.
type
(),
QByteArray
(
"NoteDisplayAttribute"
));
}
QTEST_KDEMAIN
(
NoteDisplayAttributeTest
,
NoGUI
)
noteshared/attributes/tests/notedisplayattributetest.h
View file @
0883ff58
...
...
@@ -29,6 +29,7 @@ public:
private
Q_SLOTS
:
void
shouldHaveDefaultValue
();
void
shouldEqualWhenCloning
();
void
shouldHaveType
();
};
#endif // NOTEDISPLAYATTRIBUTETEST_H
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment