summaryrefslogtreecommitdiffstats
path: root/sigmod/test/TestWeather.h
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-12-31 10:00:37 -0500
committerBen Boeckel <MathStuf@gmail.com>2008-12-31 10:00:37 -0500
commit218e8119306349f0212ca6142789dbcedd152500 (patch)
tree8a3c4250fbc5ce18eab5587a916320c4b9b1291b /sigmod/test/TestWeather.h
parent79f5886518a75f54bb9612e513a1782745b4e5a0 (diff)
downloadsigen-218e8119306349f0212ca6142789dbcedd152500.tar.gz
sigen-218e8119306349f0212ca6142789dbcedd152500.tar.xz
sigen-218e8119306349f0212ca6142789dbcedd152500.zip
Added Weather tests
Diffstat (limited to 'sigmod/test/TestWeather.h')
-rw-r--r--sigmod/test/TestWeather.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/sigmod/test/TestWeather.h b/sigmod/test/TestWeather.h
new file mode 100644
index 00000000..f5fa57d0
--- /dev/null
+++ b/sigmod/test/TestWeather.h
@@ -0,0 +1,52 @@
+/*
+ * Copyright 2008 Ben Boeckel <MathStuf@gmail.com>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef SIGMOD_TESTWEATHER
+#define SIGMOD_TESTWEATHER
+
+// Test includes
+#include "TestSigmodObject.h"
+
+// Sigmod includes
+#include "../Weather.h"
+
+class TestWeather : public TestSigmodObject
+{
+ Q_OBJECT
+
+ private slots:
+ void initTestCase();
+ void cleanupTestCase();
+
+ void init();
+ void cleanup();
+
+ void validation();
+ void saving();
+ void loading();
+
+ void setName();
+ void setScript();
+
+ void assignment();
+ private:
+ Sigmod::Weather* m_weather1;
+ Sigmod::Weather* m_weather2;
+ Sigmod::Weather* m_weather3;
+};
+
+#endif