1
#ifndef TESTSETUPTEST_H
2
#define TESTSETUPTEST_H
4
#include <cppunit/extensions/HelperMacros.h>
5
#include <cppunit/extensions/TestSetUp.h>
8
class TestSetUpTest : public CPPUNIT_NS::TestFixture
10
CPPUNIT_TEST_SUITE( TestSetUpTest );
11
CPPUNIT_TEST( testRun );
12
CPPUNIT_TEST_SUITE_END();
16
virtual ~TestSetUpTest();
24
class MockSetUp : public CPPUNIT_NS::TestSetUp
27
MockSetUp( CPPUNIT_NS::Test *test )
28
: CPPUNIT_NS::TestSetUp( test )
29
, m_setUpCalled( false )
30
, m_tearDownCalled( false )
41
m_tearDownCalled = true;
46
CPPUNIT_ASSERT( m_setUpCalled );
47
CPPUNIT_ASSERT( m_tearDownCalled );
52
bool m_tearDownCalled;
55
TestSetUpTest( const TestSetUpTest © );
56
void operator =( const TestSetUpTest © );
63
#endif // TESTSETUPTEST_H