diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-05-01 16:22:55 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-05-01 16:22:55 +0200 |
commit | 096d14f20f4dc39d20d35d605ca755b66bd48cf9 (patch) | |
tree | 4b28dd3b310ebcfa9cefa1b41992eeefa5456764 /tests/querytest.cpp | |
parent | c1475df297975b403d991f69ef9436cd576c1e46 (diff) | |
download | sink-096d14f20f4dc39d20d35d605ca755b66bd48cf9.tar.gz sink-096d14f20f4dc39d20d35d605ca755b66bd48cf9.zip |
Account filter for resources and contains comparator in query
Diffstat (limited to 'tests/querytest.cpp')
-rw-r--r-- | tests/querytest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/querytest.cpp b/tests/querytest.cpp index 7b9129e..a654931 100644 --- a/tests/querytest.cpp +++ b/tests/querytest.cpp | |||
@@ -202,7 +202,7 @@ private slots: | |||
202 | Sink::Query query; | 202 | Sink::Query query; |
203 | query.resources << "org.kde.dummy.instance1"; | 203 | query.resources << "org.kde.dummy.instance1"; |
204 | query.liveQuery = false; | 204 | query.liveQuery = false; |
205 | query.propertyFilter.insert("uid", "test1"); | 205 | query += Sink::Query::PropertyFilter("uid", "test1"); |
206 | 206 | ||
207 | // Ensure all local data is processed | 207 | // Ensure all local data is processed |
208 | Sink::ResourceControl::flushMessageQueue(query.resources).exec().waitForFinished(); | 208 | Sink::ResourceControl::flushMessageQueue(query.resources).exec().waitForFinished(); |
@@ -243,7 +243,7 @@ private slots: | |||
243 | // Test | 243 | // Test |
244 | Sink::Query query; | 244 | Sink::Query query; |
245 | query.resources << "org.kde.dummy.instance1"; | 245 | query.resources << "org.kde.dummy.instance1"; |
246 | query.propertyFilter.insert("folder", folderEntity->identifier()); | 246 | query += Sink::Query::PropertyFilter("folder", *folderEntity); |
247 | 247 | ||
248 | // Ensure all local data is processed | 248 | // Ensure all local data is processed |
249 | Sink::ResourceControl::flushMessageQueue(query.resources).exec().waitForFinished(); | 249 | Sink::ResourceControl::flushMessageQueue(query.resources).exec().waitForFinished(); |
@@ -302,7 +302,7 @@ private slots: | |||
302 | // Test | 302 | // Test |
303 | Sink::Query query; | 303 | Sink::Query query; |
304 | query.resources << "org.kde.dummy.instance1"; | 304 | query.resources << "org.kde.dummy.instance1"; |
305 | query.propertyFilter.insert("folder", folderEntity->identifier()); | 305 | query += Sink::Query::PropertyFilter("folder", *folderEntity); |
306 | query.sortProperty = "date"; | 306 | query.sortProperty = "date"; |
307 | query.limit = 1; | 307 | query.limit = 1; |
308 | query.liveQuery = false; | 308 | query.liveQuery = false; |