From aff67ab422b5fa092fed852bd34274654492cc5b Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Wed, 24 Dec 2008 00:53:07 -0500 Subject: Added boilerplate to the base test class and some more to TestAbility --- sigmod/test/TestSigmodObject.cpp | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'sigmod/test/TestSigmodObject.cpp') 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() -- cgit