diff options
Diffstat (limited to 'tests/test-resource.h')
-rw-r--r-- | tests/test-resource.h | 30 |
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 |