diff options
Diffstat (limited to 'tests/clientapitest.cpp')
-rw-r--r-- | tests/clientapitest.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/tests/clientapitest.cpp b/tests/clientapitest.cpp index 94c78a7..3f500b7 100644 --- a/tests/clientapitest.cpp +++ b/tests/clientapitest.cpp | |||
@@ -107,7 +107,6 @@ private slots: | |||
107 | 107 | ||
108 | Sink::Query query; | 108 | Sink::Query query; |
109 | query.resourceFilter("dummyresource.instance1"); | 109 | query.resourceFilter("dummyresource.instance1"); |
110 | query.liveQuery = false; | ||
111 | 110 | ||
112 | auto model = Sink::Store::loadModel<Sink::ApplicationDomain::Event>(query); | 111 | auto model = Sink::Store::loadModel<Sink::ApplicationDomain::Event>(query); |
113 | QTRY_VERIFY(model->data(QModelIndex(), Sink::Store::ChildrenFetchedRole).toBool()); | 112 | QTRY_VERIFY(model->data(QModelIndex(), Sink::Store::ChildrenFetchedRole).toBool()); |
@@ -118,7 +117,6 @@ private slots: | |||
118 | { | 117 | { |
119 | Sink::Query query; | 118 | Sink::Query query; |
120 | query.resourceFilter("nonexisting.resource"); | 119 | query.resourceFilter("nonexisting.resource"); |
121 | query.liveQuery = false; | ||
122 | 120 | ||
123 | auto model = Sink::Store::loadModel<Sink::ApplicationDomain::Event>(query); | 121 | auto model = Sink::Store::loadModel<Sink::ApplicationDomain::Event>(query); |
124 | QTRY_VERIFY(model->data(QModelIndex(), Sink::Store::ChildrenFetchedRole).toBool()); | 122 | QTRY_VERIFY(model->data(QModelIndex(), Sink::Store::ChildrenFetchedRole).toBool()); |
@@ -132,7 +130,6 @@ private slots: | |||
132 | 130 | ||
133 | Sink::Query query; | 131 | Sink::Query query; |
134 | query.resourceFilter("dummyresource.instance1"); | 132 | query.resourceFilter("dummyresource.instance1"); |
135 | query.liveQuery = false; | ||
136 | 133 | ||
137 | auto model = Sink::Store::loadModel<Sink::ApplicationDomain::Folder>(query); | 134 | auto model = Sink::Store::loadModel<Sink::ApplicationDomain::Folder>(query); |
138 | QTRY_COMPARE(model->rowCount(), 1); | 135 | QTRY_COMPARE(model->rowCount(), 1); |
@@ -150,7 +147,6 @@ private slots: | |||
150 | // Test | 147 | // Test |
151 | Sink::Query query; | 148 | Sink::Query query; |
152 | query.resourceFilter("dummyresource.instance1"); | 149 | query.resourceFilter("dummyresource.instance1"); |
153 | query.liveQuery = false; | ||
154 | query.parentProperty = "parent"; | 150 | query.parentProperty = "parent"; |
155 | 151 | ||
156 | auto model = Sink::Store::loadModel<Sink::ApplicationDomain::Folder>(query); | 152 | auto model = Sink::Store::loadModel<Sink::ApplicationDomain::Folder>(query); |
@@ -173,7 +169,6 @@ private slots: | |||
173 | // Test | 169 | // Test |
174 | Sink::Query query; | 170 | Sink::Query query; |
175 | query.resourceFilter("dummyresource.instance1"); | 171 | query.resourceFilter("dummyresource.instance1"); |
176 | query.liveQuery = false; | ||
177 | query.parentProperty = "parent"; | 172 | query.parentProperty = "parent"; |
178 | 173 | ||
179 | auto model = Sink::Store::loadModel<Sink::ApplicationDomain::Folder>(query); | 174 | auto model = Sink::Store::loadModel<Sink::ApplicationDomain::Folder>(query); |
@@ -196,7 +191,7 @@ private slots: | |||
196 | // Test | 191 | // Test |
197 | Sink::Query query; | 192 | Sink::Query query; |
198 | query.resourceFilter("dummyresource.instance1"); | 193 | query.resourceFilter("dummyresource.instance1"); |
199 | query.liveQuery = true; | 194 | query.setFlags(Sink::Query::LiveQuery); |
200 | query.parentProperty = "parent"; | 195 | query.parentProperty = "parent"; |
201 | 196 | ||
202 | auto model = Sink::Store::loadModel<Sink::ApplicationDomain::Folder>(query); | 197 | auto model = Sink::Store::loadModel<Sink::ApplicationDomain::Folder>(query); |
@@ -247,7 +242,6 @@ private slots: | |||
247 | ResourceConfig::addResource("dummyresource.instance2", "dummyresource"); | 242 | ResourceConfig::addResource("dummyresource.instance2", "dummyresource"); |
248 | 243 | ||
249 | Sink::Query query; | 244 | Sink::Query query; |
250 | query.liveQuery = false; | ||
251 | 245 | ||
252 | int childrenFetchedCount = 0; | 246 | int childrenFetchedCount = 0; |
253 | auto model = Sink::Store::loadModel<Sink::ApplicationDomain::Event>(query); | 247 | auto model = Sink::Store::loadModel<Sink::ApplicationDomain::Event>(query); |
@@ -271,7 +265,6 @@ private slots: | |||
271 | 265 | ||
272 | Sink::Query query; | 266 | Sink::Query query; |
273 | query.resourceFilter("dummyresource.instance1"); | 267 | query.resourceFilter("dummyresource.instance1"); |
274 | query.liveQuery = false; | ||
275 | 268 | ||
276 | bool gotValue = false; | 269 | bool gotValue = false; |
277 | auto result = Sink::Store::fetchOne<Sink::ApplicationDomain::Event>(query) | 270 | auto result = Sink::Store::fetchOne<Sink::ApplicationDomain::Event>(query) |