blob: a3fc7721c555ee315eb49924d35bf6c018ddc517 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#include <QtTest>
#include <tests/mailtest.h>
#include "common/test.h"
#include "common/domain/applicationdomaintype.h"
using namespace Sink;
using namespace Sink::ApplicationDomain;
/**
* Test of complete system using the maildir resource.
*
* This test requires the maildir resource installed.
*/
class MaildirMailTest : public Sink::MailTest
{
Q_OBJECT
QTemporaryDir tempDir;
QString targetPath;
protected:
void resetTestEnvironment() Q_DECL_OVERRIDE
{
targetPath = tempDir.path() + "/maildir1/";
}
Sink::ApplicationDomain::SinkResource createResource() Q_DECL_OVERRIDE
{
auto resource = ApplicationDomain::MaildirResource::create("account1");
resource.setProperty("path", targetPath);
return resource;
}
};
QTEST_MAIN(MaildirMailTest)
#include "maildirmailtest.moc"
|