move terminate to fixture decorator

This commit is contained in:
Caolán McNamara
2012-04-13 12:01:22 +01:00
parent 426a159314
commit f95b73e6f4
7 changed files with 0 additions and 49 deletions

View File

@@ -135,16 +135,9 @@ void ScCellRangeObj::setUp()
void ScCellRangeObj::tearDown()
{
if (nTest == NUMBER_OF_TESTS)
{
closeDocument(mxComponent);
}
UnoApiTest::tearDown();
if (nTest == NUMBER_OF_TESTS)
{
mxDesktop->terminate();
}
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScCellRangeObj);

View File

@@ -88,16 +88,9 @@ void ScDatabaseRangeObj::setUp()
void ScDatabaseRangeObj::tearDown()
{
if (nTest == NUMBER_OF_TESTS)
{
closeDocument(mxComponent);
}
UnoApiTest::tearDown();
if (nTest == NUMBER_OF_TESTS)
{
mxDesktop->terminate();
}
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScDatabaseRangeObj);

View File

@@ -102,16 +102,9 @@ void ScDataPilotFieldObj::setUp()
void ScDataPilotFieldObj::tearDown()
{
if (nTest == NUMBER_OF_TESTS)
{
closeDocument(mxComponent);
}
UnoApiTest::tearDown();
if (nTest == NUMBER_OF_TESTS)
{
mxDesktop->terminate();
}
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScDataPilotFieldObj);

View File

@@ -164,16 +164,9 @@ void ScDataPilotTableObj::setUp()
void ScDataPilotTableObj::tearDown()
{
if (nTest == NUMBER_OF_TESTS)
{
closeDocument(mxComponent);
}
UnoApiTest::tearDown();
if (nTest == NUMBER_OF_TESTS)
{
mxDesktop->terminate();
}
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScDataPilotTableObj);

View File

@@ -118,16 +118,9 @@ void ScNamedRangeObj::setUp()
void ScNamedRangeObj::tearDown()
{
if (nTest == NUMBER_OF_TESTS)
{
closeDocument(mxComponent);
}
UnoApiTest::tearDown();
if (nTest == NUMBER_OF_TESTS)
{
mxDesktop->terminate();
}
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScNamedRangeObj);

View File

@@ -89,16 +89,9 @@ void ScNamedRangesObj::setUp()
void ScNamedRangesObj::tearDown()
{
if (nTest == NUMBER_OF_TESTS)
{
closeDocument(mxComponent);
}
UnoApiTest::tearDown();
if (nTest == NUMBER_OF_TESTS)
{
mxDesktop->terminate();
}
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScNamedRangesObj);

View File

@@ -117,16 +117,9 @@ void ScTableSheetsObj::setUp()
void ScTableSheetsObj::tearDown()
{
if (nTest == NUMBER_OF_TESTS)
{
closeDocument(mxComponent);
}
UnoApiTest::tearDown();
if (nTest == NUMBER_OF_TESTS)
{
mxDesktop->terminate();
}
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScTableSheetsObj);