diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-08-10 00:38:43 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-08-10 00:38:43 +0200 |
commit | 3b928327401547fe32e5b60d47fa772c0d12280d (patch) | |
tree | 910a2c065c20ff6d3d9de744dab9dfe56a27af4a /tests/dummyresourcetest.cpp | |
parent | a8263a28f5d3a74581e289289d0807e6b656104b (diff) | |
download | sink-3b928327401547fe32e5b60d47fa772c0d12280d.tar.gz sink-3b928327401547fe32e5b60d47fa772c0d12280d.zip |
Adapt tests to exposed jobs in api
Diffstat (limited to 'tests/dummyresourcetest.cpp')
-rw-r--r-- | tests/dummyresourcetest.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/dummyresourcetest.cpp b/tests/dummyresourcetest.cpp index 1a4d6ca..e521fb1 100644 --- a/tests/dummyresourcetest.cpp +++ b/tests/dummyresourcetest.cpp | |||
@@ -66,7 +66,7 @@ private Q_SLOTS: | |||
66 | event.setProperty("uid", "testuid"); | 66 | event.setProperty("uid", "testuid"); |
67 | QCOMPARE(event.getProperty("uid").toByteArray(), QByteArray("testuid")); | 67 | QCOMPARE(event.getProperty("uid").toByteArray(), QByteArray("testuid")); |
68 | event.setProperty("summary", "summaryValue"); | 68 | event.setProperty("summary", "summaryValue"); |
69 | Akonadi2::Store::create<Akonadi2::ApplicationDomain::Event>(event, "org.kde.dummy.instance1"); | 69 | Akonadi2::Store::create<Akonadi2::ApplicationDomain::Event>(event, "org.kde.dummy.instance1").exec().waitForFinished(); |
70 | 70 | ||
71 | Akonadi2::Query query; | 71 | Akonadi2::Query query; |
72 | query.resources << "org.kde.dummy.instance1"; | 72 | query.resources << "org.kde.dummy.instance1"; |
@@ -87,10 +87,10 @@ private Q_SLOTS: | |||
87 | event.setProperty("summary", "summaryValue"); | 87 | event.setProperty("summary", "summaryValue"); |
88 | 88 | ||
89 | event.setProperty("uid", "testuid"); | 89 | event.setProperty("uid", "testuid"); |
90 | Akonadi2::Store::create<Akonadi2::ApplicationDomain::Event>(event, "org.kde.dummy.instance1"); | 90 | Akonadi2::Store::create<Akonadi2::ApplicationDomain::Event>(event, "org.kde.dummy.instance1").exec().waitForFinished(); |
91 | 91 | ||
92 | event.setProperty("uid", "testuid2"); | 92 | event.setProperty("uid", "testuid2"); |
93 | Akonadi2::Store::create<Akonadi2::ApplicationDomain::Event>(event, "org.kde.dummy.instance1"); | 93 | Akonadi2::Store::create<Akonadi2::ApplicationDomain::Event>(event, "org.kde.dummy.instance1").exec().waitForFinished(); |
94 | 94 | ||
95 | Akonadi2::Query query; | 95 | Akonadi2::Query query; |
96 | query.resources << "org.kde.dummy.instance1"; | 96 | query.resources << "org.kde.dummy.instance1"; |
@@ -112,11 +112,11 @@ private Q_SLOTS: | |||
112 | 112 | ||
113 | event.setProperty("uid", "testuid"); | 113 | event.setProperty("uid", "testuid"); |
114 | event.setProperty("summary", "summaryValue1"); | 114 | event.setProperty("summary", "summaryValue1"); |
115 | Akonadi2::Store::create<Akonadi2::ApplicationDomain::Event>(event, "org.kde.dummy.instance1"); | 115 | Akonadi2::Store::create<Akonadi2::ApplicationDomain::Event>(event, "org.kde.dummy.instance1").exec().waitForFinished(); |
116 | 116 | ||
117 | event.setProperty("uid", "testuid2"); | 117 | event.setProperty("uid", "testuid2"); |
118 | event.setProperty("summary", "summaryValue2"); | 118 | event.setProperty("summary", "summaryValue2"); |
119 | Akonadi2::Store::create<Akonadi2::ApplicationDomain::Event>(event, "org.kde.dummy.instance1"); | 119 | Akonadi2::Store::create<Akonadi2::ApplicationDomain::Event>(event, "org.kde.dummy.instance1").exec().waitForFinished(); |
120 | 120 | ||
121 | Akonadi2::Query query; | 121 | Akonadi2::Query query; |
122 | query.resources << "org.kde.dummy.instance1"; | 122 | query.resources << "org.kde.dummy.instance1"; |
@@ -168,7 +168,7 @@ private Q_SLOTS: | |||
168 | event.setProperty("uid", "testuid"); | 168 | event.setProperty("uid", "testuid"); |
169 | QCOMPARE(event.getProperty("uid").toByteArray(), QByteArray("testuid")); | 169 | QCOMPARE(event.getProperty("uid").toByteArray(), QByteArray("testuid")); |
170 | event.setProperty("summary", "summaryValue"); | 170 | event.setProperty("summary", "summaryValue"); |
171 | Akonadi2::Store::create<Akonadi2::ApplicationDomain::Event>(event, "org.kde.dummy.instance1"); | 171 | Akonadi2::Store::create<Akonadi2::ApplicationDomain::Event>(event, "org.kde.dummy.instance1").exec().waitForFinished(); |
172 | 172 | ||
173 | Akonadi2::Query query; | 173 | Akonadi2::Query query; |
174 | query.resources << "org.kde.dummy.instance1"; | 174 | query.resources << "org.kde.dummy.instance1"; |
@@ -190,7 +190,7 @@ private Q_SLOTS: | |||
190 | 190 | ||
191 | event2.setProperty("uid", "testuid"); | 191 | event2.setProperty("uid", "testuid"); |
192 | event2.setProperty("summary", "summaryValue2"); | 192 | event2.setProperty("summary", "summaryValue2"); |
193 | Akonadi2::Store::modify<Akonadi2::ApplicationDomain::Event>(event2, "org.kde.dummy.instance1"); | 193 | Akonadi2::Store::modify<Akonadi2::ApplicationDomain::Event>(event2, "org.kde.dummy.instance1").exec().waitForFinished(); |
194 | 194 | ||
195 | //Test modify | 195 | //Test modify |
196 | { | 196 | { |