blob: 295d6d3f6a3ece435f8c05cf025274505ede8089 (
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
|
#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();
};
#endif
|