diff options
author | Wolf Bergenheim <ext-wolf.2.bergenheim@nokia.com> | 2009-12-30 16:00:09 +0200 |
---|---|---|
committer | Wolf Bergenheim <ext-wolf.2.bergenheim@nokia.com> | 2009-12-30 16:00:09 +0200 |
commit | 9504f0418dd0f3a9e6dff6034ffe36196c473a06 (patch) | |
tree | b91b56455e0541b03f018df99c9ea95865621f9a /tests/test-resource.h |
Initial commit
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 |