You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#ifndef FIXTURE_HPP
|
|
|
|
#define FIXTURE_HPP
|
|
|
|
|
|
|
|
#include <cxxtest/TestSuite.h>
|
|
|
|
#include <cxxtest/GlobalFixture.h>
|
|
|
|
|
|
|
|
#include "Common.hpp"
|
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
class TestFixture : public CxxTest::GlobalFixture
|
|
|
|
{
|
|
|
|
bool setUpWorld()
|
|
|
|
{
|
|
|
|
Logger::createInstance();
|
|
|
|
Logger::init(std::cout);
|
|
|
|
Logger::setLogLevel(Logger::FINEST);
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool tearDownWorld()
|
|
|
|
{
|
|
|
|
Logger::destroy();
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
static TestFixture testCommon;
|
|
|
|
|
|
|
|
|
|
|
|
#define TEST_HEADER \
|
|
|
|
MSG( std::string("\n+++ ").append(__PRETTY_FUNCTION__).append(" +++\n").c_str());
|
|
|
|
|
|
|
|
|
|
|
|
#endif // FIXTURE_HPP
|