diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-09-08 21:08:54 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-09-08 21:08:54 +0200 |
commit | bbbda3fe9444eba6795a5490da0425cdf8f26361 (patch) | |
tree | d558ce110b71278df91135db5ac29c484e588ac5 /tests/dummyresourcetest.cpp | |
parent | 43ae43bc74800473aadf9c5c807603cdf8516d36 (diff) | |
download | sink-bbbda3fe9444eba6795a5490da0425cdf8f26361.tar.gz sink-bbbda3fe9444eba6795a5490da0425cdf8f26361.zip |
Added support for mails to akonadi and the dummyresource.
Adding new types definitely needs to become easier.
Diffstat (limited to 'tests/dummyresourcetest.cpp')
-rw-r--r-- | tests/dummyresourcetest.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/dummyresourcetest.cpp b/tests/dummyresourcetest.cpp index e3b3f07..a28e071 100644 --- a/tests/dummyresourcetest.cpp +++ b/tests/dummyresourcetest.cpp | |||
@@ -164,6 +164,21 @@ private Q_SLOTS: | |||
164 | qDebug() << value->getProperty("summary").toString(); | 164 | qDebug() << value->getProperty("summary").toString(); |
165 | } | 165 | } |
166 | 166 | ||
167 | void testSyncAndFacadeMail() | ||
168 | { | ||
169 | Akonadi2::Query query; | ||
170 | query.resources << "org.kde.dummy.instance1"; | ||
171 | query.syncOnDemand = true; | ||
172 | query.processAll = true; | ||
173 | |||
174 | async::SyncListResult<Akonadi2::ApplicationDomain::Mail::Ptr> result(Akonadi2::Store::load<Akonadi2::ApplicationDomain::Mail>(query)); | ||
175 | result.exec(); | ||
176 | QVERIFY(!result.isEmpty()); | ||
177 | auto value = result.first(); | ||
178 | QVERIFY(!value->getProperty("subject").toString().isEmpty()); | ||
179 | qDebug() << value->getProperty("subject").toString(); | ||
180 | } | ||
181 | |||
167 | void testWriteModifyDelete() | 182 | void testWriteModifyDelete() |
168 | { | 183 | { |
169 | Akonadi2::ApplicationDomain::Event event; | 184 | Akonadi2::ApplicationDomain::Event event; |