Commit 1a93f575 authored by Laurent Montel's avatar Laurent Montel 😁

Add test for default value

parent cef368a9
......@@ -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)
......@@ -26,7 +26,8 @@ class RequestTest : public QObject
public:
explicit RequestTest(QObject *parent = 0);
~RequestTest();
private Q_SLOTS:
void shouldHaveDefaultValue();
};
#endif // REQUESTTEST_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