summaryrefslogtreecommitdiff
path: root/tests/test-resource.h
blob: 6ae3859fc9314c8e88a18681177bfcde74e0fa0f (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
#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 initTestCase();

   void testInitializeSucceeds();
   void testInitializeFails();
};

#endif