summaryrefslogtreecommitdiff
path: root/tests/test-resource.h
blob: 6a39ad421886a5ffebf6f1b8eb01ce6fddb83843 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef TEST_RESOURCE_H
#define TEST_RESOURCE_H

#include <QtTest/QTest>
#include "resource.h"
#include "mock-resource-library.h"

class TestResource: public QObject
{
   Q_OBJECT
private:
   ResourceLibrary *resourceLibrary;
   Resource *resource;
public:
   TestResource();
   ~TestResource();
private slots:
   void init();

   void testInitializeSucceeds();
   void testInitializeFails();

   void testConnectToServerSucceeds();
   void testConnectToServerFails();

   void testApplicationClass();
   void testResources();
};

#endif