diff --git a/tests/storagetest.cpp b/tests/storagetest.cpp index b1016d429..79c7c3f2c 100644 --- a/tests/storagetest.cpp +++ b/tests/storagetest.cpp @@ -50,7 +50,18 @@ void StorageTest::store() void StorageTest::retrieve() { - QCOMPARE(true, true); + Storage storage; + KConfigGroup op = storage.operationDescription("retrieve"); + op.writeEntry("group", "Test"); + Plasma::ServiceJob *job = storage.startOperationCall(op); + StorageJob *storageJob = qobject_cast(job); + + QVERIFY(storageJob); + if (storageJob) { + QVERIFY(storageJob->exec()); + QVERIFY(storageJob->result().toBool()); + QCOMPARE(storageJob->data(), m_data); + } } QTEST_KDEMAIN(StorageTest, NoGUI)