From 218e8119306349f0212ca6142789dbcedd152500 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Wed, 31 Dec 2008 10:00:37 -0500 Subject: Added Weather tests --- sigmod/test/TestWeather.h | 52 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 sigmod/test/TestWeather.h (limited to 'sigmod/test/TestWeather.h') 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 + * + * 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 . + */ + +#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 -- cgit