summaryrefslogtreecommitdiff
path: root/sw/qa/extras/inc
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-11-05 09:39:58 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-11-05 09:47:31 +0100
commit428f1a2755dd1753cebfc434306773a0aa1ed6d8 (patch)
tree7c49c1ded65cf8f975e12afa7133f44ce299702c /sw/qa/extras/inc
parent0e6e2fdad53dba19d5d238256ec749f33b1b247e (diff)
CppunitTest_sw_mailmerge: move executeMailMergeTest() from header file
Change-Id: Ia1cfe9f65fe7c7be0c93ad03a6c34c57ffa4b45e
Diffstat (limited to 'sw/qa/extras/inc')
-rw-r--r--sw/qa/extras/inc/swmodeltestbase.hxx29
1 files changed, 0 insertions, 29 deletions
diff --git a/sw/qa/extras/inc/swmodeltestbase.hxx b/sw/qa/extras/inc/swmodeltestbase.hxx
index fbfb1070194e..aae1f4da0471 100644
--- a/sw/qa/extras/inc/swmodeltestbase.hxx
+++ b/sw/qa/extras/inc/swmodeltestbase.hxx
@@ -296,35 +296,6 @@ protected:
}
/**
- * Helper func used by each unit test to test the 'mail merge' code.
- *
- * Registers the data source, loads the original file as reference,
- * initializes the mail merge job and its default argument sequence.
- *
- * The 'verify' method actually has to execute the mail merge by
- * calling executeMailMerge() after modifying the job arguments.
- */
- void executeMailMergeTest(const char* filename, const char* datasource, const char* tablename = 0)
- {
- header();
- preTest(filename);
- load(mpTestDocumentPath, filename);
-
- const OUString aPrefix( "LOMM_" );
- utl::TempFile aTempDir(nullptr, true);
- const OUString aWorkDir = aTempDir.GetURL();
- const OUString aURI( getURLFromSrc(mpTestDocumentPath) + OUString::createFromAscii(datasource) );
- OUString aDBName = registerDBsource( aURI, aPrefix, aWorkDir );
- initMailMergeJobAndArgs( filename, tablename, aDBName, aPrefix, aWorkDir );
-
- postTest(filename);
- verify();
- finish();
-
- ::utl::removeTree(aWorkDir);
- }
-
- /**
* Function overloaded by unit test. See DECLARE_SW_*_TEST macros
*/
virtual void verify()