summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-12-22 11:37:00 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-12-22 11:37:00 +0100
commit82f4e8d525b6a82a9377e19ae115fcbb8ef33110 (patch)
treea537033485c4c1ac8b1cfe68a9bf11b66e3bebed /examples
parentdd68f2d20c4340bf31db960df558a7d9f603bb3a (diff)
downloadsink-82f4e8d525b6a82a9377e19ae115fcbb8ef33110.tar.gz
sink-82f4e8d525b6a82a9377e19ae115fcbb8ef33110.zip
Mailtransporttest
Diffstat (limited to 'examples')
-rw-r--r--examples/mailtransportresource/tests/mailtransporttest.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/mailtransportresource/tests/mailtransporttest.cpp b/examples/mailtransportresource/tests/mailtransporttest.cpp
index cb78603..3b848b3 100644
--- a/examples/mailtransportresource/tests/mailtransporttest.cpp
+++ b/examples/mailtransportresource/tests/mailtransporttest.cpp
@@ -66,6 +66,12 @@ private slots:
66 66
67 VERIFYEXEC(Store::create(mail)); 67 VERIFYEXEC(Store::create(mail));
68 VERIFYEXEC(ResourceControl::flushMessageQueue(QByteArrayList() << mResourceInstanceIdentifier)); 68 VERIFYEXEC(ResourceControl::flushMessageQueue(QByteArrayList() << mResourceInstanceIdentifier));
69
70 //Ensure the mail is queryable in the outbox
71 auto mailInOutbox = Store::readOne<ApplicationDomain::Mail>(Query().resourceFilter(mResourceInstanceIdentifier).filter<Mail::Sent>(false).request<Mail::Subject>().request<Mail::Folder>().request<Mail::MimeMessage>().request<Mail::Sent>());
72 QVERIFY(!mailInOutbox.identifier().isEmpty());
73
74 //Ensure the mail is sent and moved to the sent mail folder on sync
69 VERIFYEXEC(Store::synchronize(Query().resourceFilter(mResourceInstanceIdentifier))); 75 VERIFYEXEC(Store::synchronize(Query().resourceFilter(mResourceInstanceIdentifier)));
70 QTest::qWait(100); 76 QTest::qWait(100);
71 VERIFYEXEC(ResourceControl::flushMessageQueue(QByteArrayList() << mStorageResource)); 77 VERIFYEXEC(ResourceControl::flushMessageQueue(QByteArrayList() << mStorageResource));