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 Libraries
Commits
1a93f575
Commit
1a93f575
authored
Dec 09, 2014
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test for default value
parent
cef368a9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletion
+16
-1
kioslave/smtp/tests/requesttest.cpp
kioslave/smtp/tests/requesttest.cpp
+14
-0
kioslave/smtp/tests/requesttest.h
kioslave/smtp/tests/requesttest.h
+2
-1
No files found.
kioslave/smtp/tests/requesttest.cpp
View file @
1a93f575
...
@@ -29,4 +29,18 @@ RequestTest::~RequestTest()
...
@@ -29,4 +29,18 @@ RequestTest::~RequestTest()
}
}
void
RequestTest
::
shouldHaveDefaultValue
()
{
KioSMTP
::
Request
request
;
QVERIFY
(
request
.
to
().
isEmpty
());
QVERIFY
(
request
.
cc
().
isEmpty
());
QVERIFY
(
request
.
bcc
().
isEmpty
());
QVERIFY
(
request
.
emitHeaders
());
QVERIFY
(
!
request
.
is8BitBody
());
QVERIFY
(
request
.
profileName
().
isEmpty
());
QVERIFY
(
request
.
fromAddress
().
isEmpty
());
QVERIFY
(
request
.
heloHostname
().
isEmpty
());
QCOMPARE
(
request
.
size
(),
static_cast
<
unsigned
int
>
(
0
));
}
QTEST_KDEMAIN
(
RequestTest
,
NoGUI
)
QTEST_KDEMAIN
(
RequestTest
,
NoGUI
)
kioslave/smtp/tests/requesttest.h
View file @
1a93f575
...
@@ -26,7 +26,8 @@ class RequestTest : public QObject
...
@@ -26,7 +26,8 @@ class RequestTest : public QObject
public:
public:
explicit
RequestTest
(
QObject
*
parent
=
0
);
explicit
RequestTest
(
QObject
*
parent
=
0
);
~
RequestTest
();
~
RequestTest
();
private
Q_SLOTS
:
void
shouldHaveDefaultValue
();
};
};
#endif // REQUESTTEST_H
#endif // REQUESTTEST_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