From 9c3428755177ac7d8c60015b8cf6d98f3d10f68c Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Thu, 28 Apr 2011 16:30:58 +0200 Subject: [PATCH] more testing --- tests/storagetest.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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)