diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-12-24 00:03:30 -0500 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-12-24 00:03:30 -0500 |
| commit | e20faa8fd950a97d511adbec40c13eeb1093563d (patch) | |
| tree | f839f76e304b44f2229372912b186711d8a41399 /sigmod/test/TestSigmodObject.h | |
| parent | 64f5df38e8bde270bd6749bcc93ce596f69e4dc3 (diff) | |
| download | sigen-e20faa8fd950a97d511adbec40c13eeb1093563d.tar.gz sigen-e20faa8fd950a97d511adbec40c13eeb1093563d.tar.xz sigen-e20faa8fd950a97d511adbec40c13eeb1093563d.zip | |
Started Ability test class and also adding base class for sigmod classes
Diffstat (limited to 'sigmod/test/TestSigmodObject.h')
| -rw-r--r-- | sigmod/test/TestSigmodObject.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/sigmod/test/TestSigmodObject.h b/sigmod/test/TestSigmodObject.h new file mode 100644 index 00000000..9ec43f3a --- /dev/null +++ b/sigmod/test/TestSigmodObject.h @@ -0,0 +1,55 @@ +/* + * 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_TESTSIGMODOBJECT +#define SIGMOD_TESTSIGMODOBJECT + +// Test includes +#include "Global.h" + +// Qt includes +#include <QtCore/QList> +#include <QtCore/QObject> +#include <QtCore/QString> + +class SIGMODTEST_EXPORT TestSigmodObject : public QObject +{ + Q_OBJECT + + protected: + QList<QString> m_messages; + QList<QString> m_warnings; + QList<QString> m_errors; + protected slots: + void message(const QString& warning); + void warning(const QString& warning); + void error(const QString& warning); + + virtual void initTestCases(); + virtual void cleanupTestCases(); + + virtual void init(); + virtual void cleanup(); + + virtual void validation() = 0; + virtual void saving() = 0; + virtual void loading() = 0; + + virtual void assignment() = 0; +}; + +#endif |
