diff options
Diffstat (limited to 'tests/resourceconfigtest.cpp')
-rw-r--r-- | tests/resourceconfigtest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/resourceconfigtest.cpp b/tests/resourceconfigtest.cpp index 021d042..70a37f0 100644 --- a/tests/resourceconfigtest.cpp +++ b/tests/resourceconfigtest.cpp | |||
@@ -38,7 +38,7 @@ private slots: | |||
38 | Sink::Store::create(res).exec().waitForFinished(); | 38 | Sink::Store::create(res).exec().waitForFinished(); |
39 | { | 39 | { |
40 | Sink::Query query; | 40 | Sink::Query query; |
41 | query.propertyFilter.insert("type", Sink::Query::Comparator("dummyresource")); | 41 | query.filter("type", Sink::Query::Comparator("dummyresource")); |
42 | auto model = Sink::Store::loadModel<Sink::ApplicationDomain::SinkResource>(query); | 42 | auto model = Sink::Store::loadModel<Sink::ApplicationDomain::SinkResource>(query); |
43 | QTRY_COMPARE(model->rowCount(QModelIndex()), 1); | 43 | QTRY_COMPARE(model->rowCount(QModelIndex()), 1); |
44 | } | 44 | } |
@@ -46,7 +46,7 @@ private slots: | |||
46 | Sink::Store::remove(res).exec().waitForFinished(); | 46 | Sink::Store::remove(res).exec().waitForFinished(); |
47 | { | 47 | { |
48 | Sink::Query query; | 48 | Sink::Query query; |
49 | query.propertyFilter.insert("type", Sink::Query::Comparator("dummyresource")); | 49 | query.filter("type", Sink::Query::Comparator("dummyresource")); |
50 | auto model = Sink::Store::loadModel<Sink::ApplicationDomain::SinkResource>(query); | 50 | auto model = Sink::Store::loadModel<Sink::ApplicationDomain::SinkResource>(query); |
51 | QTRY_VERIFY(model->data(QModelIndex(), Sink::Store::ChildrenFetchedRole).toBool()); | 51 | QTRY_VERIFY(model->data(QModelIndex(), Sink::Store::ChildrenFetchedRole).toBool()); |
52 | QCOMPARE(model->rowCount(QModelIndex()), 0); | 52 | QCOMPARE(model->rowCount(QModelIndex()), 0); |
@@ -66,7 +66,7 @@ private slots: | |||
66 | Sink::Store::create(res).exec().waitForFinished(); | 66 | Sink::Store::create(res).exec().waitForFinished(); |
67 | { | 67 | { |
68 | Sink::Query query; | 68 | Sink::Query query; |
69 | query.propertyFilter.insert("type", Sink::Query::Comparator("dummyresource")); | 69 | query.filter("type", Sink::Query::Comparator("dummyresource")); |
70 | auto model = Sink::Store::loadModel<Sink::ApplicationDomain::SinkResource>(Sink::Query::CapabilityFilter("foo")); | 70 | auto model = Sink::Store::loadModel<Sink::ApplicationDomain::SinkResource>(Sink::Query::CapabilityFilter("foo")); |
71 | QTRY_COMPARE(model->rowCount(QModelIndex()), 1); | 71 | QTRY_COMPARE(model->rowCount(QModelIndex()), 1); |
72 | } | 72 | } |