diff options
Diffstat (limited to 'tests/clientapitest.cpp')
-rw-r--r-- | tests/clientapitest.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/clientapitest.cpp b/tests/clientapitest.cpp index a874dd7..e7db0d0 100644 --- a/tests/clientapitest.cpp +++ b/tests/clientapitest.cpp | |||
@@ -174,6 +174,24 @@ private Q_SLOTS: | |||
174 | QTRY_VERIFY(!facade->capturedResultProvider); | 174 | QTRY_VERIFY(!facade->capturedResultProvider); |
175 | } | 175 | } |
176 | 176 | ||
177 | void resourceManagement() | ||
178 | { | ||
179 | Akonadi2::FacadeFactory::registerStaticFacades(); | ||
180 | Akonadi2::ApplicationDomain::AkonadiResource res; | ||
181 | res.setProperty("identifier", "identifier1"); | ||
182 | res.setProperty("type", "dummyresource"); | ||
183 | |||
184 | Akonadi2::Store::create(res, "resourceconfig"); | ||
185 | |||
186 | { | ||
187 | Akonadi2::Query query; | ||
188 | query.resources << "resourceconfig"; | ||
189 | async::SyncListResult<Akonadi2::ApplicationDomain::AkonadiResource::Ptr> result(Akonadi2::Store::load<Akonadi2::ApplicationDomain::AkonadiResource>(query)); | ||
190 | result.exec(); | ||
191 | QCOMPARE(result.size(), 1); | ||
192 | } | ||
193 | } | ||
194 | |||
177 | }; | 195 | }; |
178 | 196 | ||
179 | QTEST_MAIN(ClientAPITest) | 197 | QTEST_MAIN(ClientAPITest) |