From 82f4e8d525b6a82a9377e19ae115fcbb8ef33110 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 22 Dec 2016 11:37:00 +0100 Subject: Mailtransporttest --- examples/mailtransportresource/tests/mailtransporttest.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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: VERIFYEXEC(Store::create(mail)); VERIFYEXEC(ResourceControl::flushMessageQueue(QByteArrayList() << mResourceInstanceIdentifier)); + + //Ensure the mail is queryable in the outbox + auto mailInOutbox = Store::readOne(Query().resourceFilter(mResourceInstanceIdentifier).filter(false).request().request().request().request()); + QVERIFY(!mailInOutbox.identifier().isEmpty()); + + //Ensure the mail is sent and moved to the sent mail folder on sync VERIFYEXEC(Store::synchronize(Query().resourceFilter(mResourceInstanceIdentifier))); QTest::qWait(100); VERIFYEXEC(ResourceControl::flushMessageQueue(QByteArrayList() << mStorageResource)); -- cgit v1.2.3