diff options
Diffstat (limited to 'tests/test-resource.h')
-rw-r--r-- | tests/test-resource.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/test-resource.h b/tests/test-resource.h new file mode 100644 index 0000000..7d0bd7f --- /dev/null +++ b/tests/test-resource.h @@ -0,0 +1,25 @@ +#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 testConstructor(); + void testInitializeSucceeds(); + void testInitializeFails(); +}; + +#endif |