diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-10-05 20:07:53 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-10-05 20:07:53 +0200 |
commit | 94829f17066dcbbeb9f641a4870dd88aa916ba24 (patch) | |
tree | cef0fef888e999cc840bbe90a9c155eae1b0890c /examples/mailtransportresource | |
parent | e470f65cad943f8a3065c6f5f6287adcc704627e (diff) | |
download | sink-94829f17066dcbbeb9f641a4870dd88aa916ba24.tar.gz sink-94829f17066dcbbeb9f641a4870dd88aa916ba24.zip |
A better resource filter api
Diffstat (limited to 'examples/mailtransportresource')
-rw-r--r-- | examples/mailtransportresource/tests/mailtransporttest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/mailtransportresource/tests/mailtransporttest.cpp b/examples/mailtransportresource/tests/mailtransporttest.cpp index fdd591b..e44aa23 100644 --- a/examples/mailtransportresource/tests/mailtransporttest.cpp +++ b/examples/mailtransportresource/tests/mailtransporttest.cpp | |||
@@ -61,10 +61,10 @@ private slots: | |||
61 | 61 | ||
62 | VERIFYEXEC(Store::create(mail)); | 62 | VERIFYEXEC(Store::create(mail)); |
63 | VERIFYEXEC(ResourceControl::flushMessageQueue(QByteArrayList() << mResourceInstanceIdentifier)); | 63 | VERIFYEXEC(ResourceControl::flushMessageQueue(QByteArrayList() << mResourceInstanceIdentifier)); |
64 | VERIFYEXEC(Store::synchronize(Query::ResourceFilter(mResourceInstanceIdentifier))); | 64 | VERIFYEXEC(Store::synchronize(Query().resourceFilter(mResourceInstanceIdentifier))); |
65 | VERIFYEXEC(ResourceControl::inspect<ApplicationDomain::Mail>(ResourceControl::Inspection::ExistenceInspection(mail, true))); | 65 | VERIFYEXEC(ResourceControl::inspect<ApplicationDomain::Mail>(ResourceControl::Inspection::ExistenceInspection(mail, true))); |
66 | 66 | ||
67 | auto sentMail = Store::readOne<ApplicationDomain::Mail>(Query::IdentityFilter(mail).request<Mail::Sent>().request<Mail::Subject>()); | 67 | auto sentMail = Store::readOne<ApplicationDomain::Mail>(Query(mail).request<Mail::Sent>().request<Mail::Subject>()); |
68 | QVERIFY(sentMail.getSent()); | 68 | QVERIFY(sentMail.getSent()); |
69 | QVERIFY(!sentMail.getSubject().isEmpty()); | 69 | QVERIFY(!sentMail.getSubject().isEmpty()); |
70 | } | 70 | } |