diff options
Diffstat (limited to 'tests/inspectiontest.cpp')
-rw-r--r-- | tests/inspectiontest.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/inspectiontest.cpp b/tests/inspectiontest.cpp index 38bf23d..3e8a103 100644 --- a/tests/inspectiontest.cpp +++ b/tests/inspectiontest.cpp | |||
@@ -19,11 +19,10 @@ class InspectionTest : public QObject | |||
19 | private slots: | 19 | private slots: |
20 | void initTestCase() | 20 | void initTestCase() |
21 | { | 21 | { |
22 | Sink::Log::setDebugOutputLevel(Sink::Log::Trace); | 22 | auto factory = Sink::ResourceFactory::load("sink.dummy"); |
23 | auto factory = Sink::ResourceFactory::load("org.kde.dummy"); | ||
24 | QVERIFY(factory); | 23 | QVERIFY(factory); |
25 | ResourceConfig::addResource("org.kde.dummy.instance1", "org.kde.dummy"); | 24 | ResourceConfig::addResource("sink.dummy.instance1", "sink.dummy"); |
26 | Sink::Store::removeDataFromDisk(QByteArray("org.kde.dummy.instance1")).exec().waitForFinished(); | 25 | Sink::Store::removeDataFromDisk(QByteArray("sink.dummy.instance1")).exec().waitForFinished(); |
27 | } | 26 | } |
28 | 27 | ||
29 | void testInspection_data() | 28 | void testInspection_data() |
@@ -39,7 +38,7 @@ private slots: | |||
39 | using namespace Sink; | 38 | using namespace Sink; |
40 | using namespace Sink::ApplicationDomain; | 39 | using namespace Sink::ApplicationDomain; |
41 | 40 | ||
42 | Mail mail(QByteArray("org.kde.dummy.instance1"), QByteArray("identifier"), 0, QSharedPointer<MemoryBufferAdaptor::MemoryBufferAdaptor>::create()); | 41 | Mail mail(QByteArray("sink.dummy.instance1"), QByteArray("identifier"), 0, QSharedPointer<MemoryBufferAdaptor::MemoryBufferAdaptor>::create()); |
43 | 42 | ||
44 | // testInspection is a magic property that the dummyresource supports | 43 | // testInspection is a magic property that the dummyresource supports |
45 | auto inspectionCommand = ResourceControl::Inspection::PropertyInspection(mail, "testInspection", success); | 44 | auto inspectionCommand = ResourceControl::Inspection::PropertyInspection(mail, "testInspection", success); |