summaryrefslogtreecommitdiff
path: root/tests/test-resource.h
diff options
context:
space:
mode:
authorWolf Bergenheim <ext-wolf.2.bergenheim@nokia.com>2010-01-21 09:56:07 +0200
committerWolf Bergenheim <ext-wolf.2.bergenheim@nokia.com>2010-01-21 09:56:38 +0200
commitdef881f37f26d6f3b9bf1a9c077dae4916717157 (patch)
tree6b378f9c7de325ad8d3bfb57b1e5d354d7e529fa /tests/test-resource.h
parentf482f4e2ebdff76d1818822fd98f7941787745d8 (diff)
Refactored Resource
Diffstat (limited to 'tests/test-resource.h')
-rw-r--r--tests/test-resource.h30
1 files changed, 14 insertions, 16 deletions
diff --git a/tests/test-resource.h b/tests/test-resource.h
index a762a8a..e55e2af 100644
--- a/tests/test-resource.h
+++ b/tests/test-resource.h
@@ -3,41 +3,39 @@
#include <QtTest/QTest>
#include "resource.h"
-#include "mock-resource-library.h"
class TestResource: public QObject
{
Q_OBJECT
private:
- ResourceLibrary *resourceLibrary;
Resource *resource;
- bool isReservable;
- bool isReserved;
public:
TestResource();
~TestResource();
-public slots:
- void handleReservable();
- void handleStateChanged(enum ResourceState newState);
private slots:
+
void init();
+ void cleanup();
- void testInitializeSucceeds();
- void testInitializeFails();
+ void testType_data();
+ void testType();
+
+ void testOptional_data();
+ void testOptional();
- void testConnectToServerSucceeds();
- void testConnectToServerFails();
+ void testShared_data();
+ void testShared();
- void testApplicationClass();
- void testResources();
+ void testIdentifier_data();
+ void testIdentifier();
- void testReservable();
+ void testCopy();
+ void testCopyConstructor();
- void testReserve();
- void testReserveExpectFail();
+ void testEqualsOperator();
};
#endif