From def881f37f26d6f3b9bf1a9c077dae4916717157 Mon Sep 17 00:00:00 2001 From: Wolf Bergenheim Date: Thu, 21 Jan 2010 09:56:07 +0200 Subject: Refactored Resource --- tests/test-resource.h | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) (limited to 'tests/test-resource.h') 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 #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 -- cgit v1.2.3