summaryrefslogtreecommitdiffstats
path: root/sigmod/test/TestSigmodObject.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-12-24 00:53:07 -0500
committerBen Boeckel <MathStuf@gmail.com>2008-12-24 00:53:07 -0500
commitaff67ab422b5fa092fed852bd34274654492cc5b (patch)
treeb4538137d2f8b52e7f16fa6917b7d17a3e9dc169 /sigmod/test/TestSigmodObject.cpp
parente20faa8fd950a97d511adbec40c13eeb1093563d (diff)
downloadsigen-aff67ab422b5fa092fed852bd34274654492cc5b.tar.gz
sigen-aff67ab422b5fa092fed852bd34274654492cc5b.tar.xz
sigen-aff67ab422b5fa092fed852bd34274654492cc5b.zip
Added boilerplate to the base test class and some more to TestAbility
Diffstat (limited to 'sigmod/test/TestSigmodObject.cpp')
-rw-r--r--sigmod/test/TestSigmodObject.cpp21
1 files changed, 19 insertions, 2 deletions
diff --git a/sigmod/test/TestSigmodObject.cpp b/sigmod/test/TestSigmodObject.cpp
index b0baa44d..6ea81d7f 100644
--- a/sigmod/test/TestSigmodObject.cpp
+++ b/sigmod/test/TestSigmodObject.cpp
@@ -18,6 +18,21 @@
// Header include
#include "TestSigmodObject.h"
+// Sigmod includes
+#include "../Sigmod.h"
+
+void TestSigmodObject::makeConnections(Sigmod::Object* object)
+{
+// connect(object, SIGNAL(message(QString)), this, SLOT(message(QString)));
+// connect(object, SIGNAL(warning(QString)), this, SLOT(warning(QString)));
+// connect(object, SIGNAL(error(QString)), this, SLOT(error(QString)));
+}
+
+void TestSigmodObject::closeConnections(Sigmod::Object* object)
+{
+ disconnect(object, 0, this, 0);
+}
+
void TestSigmodObject::message(const QString& message)
{
m_messages.append(message);
@@ -33,12 +48,14 @@ void TestSigmodObject::error(const QString& error)
m_errors.append(error);
}
-void TestSigmodObject::initTestCases()
+void TestSigmodObject::initTestCase()
{
+ m_sigmod = new Sigmod::Sigmod;
}
-void TestSigmodObject::cleanupTestCases()
+void TestSigmodObject::cleanupTestCase()
{
+ delete m_sigmod;
}
void TestSigmodObject::init()