Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
KDE Pim
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Unmaintained
KDE Pim
Commits
e609c9f5
Commit
e609c9f5
authored
Dec 18, 2014
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve unittest
parent
9eb8b648
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
pimcommon/acl/autotests/imapaclattributetest.cpp
pimcommon/acl/autotests/imapaclattributetest.cpp
+13
-0
pimcommon/acl/autotests/imapaclattributetest.h
pimcommon/acl/autotests/imapaclattributetest.h
+3
-0
No files found.
pimcommon/acl/autotests/imapaclattributetest.cpp
View file @
e609c9f5
...
@@ -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
)
pimcommon/acl/autotests/imapaclattributetest.h
View file @
e609c9f5
...
@@ -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
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