diff options
author | Michael Meeks <michael.meeks@suse.com> | 2011-10-05 16:00:44 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2011-10-05 16:02:28 +0100 |
commit | 8a0d0457a79836fa9d8ea8d4c48ecbf7bac2e95b (patch) | |
tree | 242935d062542ef2993a4e0bc3aeb3f188bef1a4 /lotuswordpro/qa | |
parent | 9767483eea7800aadd18b4489069ad633ce7a79c (diff) |
test fix: use setUp and tearDown not constructors to init LibreOffice
It turns out the constructors are all run back-to-back one per filter,
and we need to init and de-init in a sensible order to make multiple
tests that otherwise share the ContentBroker work properly.
Diffstat (limited to 'lotuswordpro/qa')
-rw-r--r-- | lotuswordpro/qa/cppunit/test_lotuswordpro.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lotuswordpro/qa/cppunit/test_lotuswordpro.cxx b/lotuswordpro/qa/cppunit/test_lotuswordpro.cxx index b68c86df5cbf..7500e25317b7 100644 --- a/lotuswordpro/qa/cppunit/test_lotuswordpro.cxx +++ b/lotuswordpro/qa/cppunit/test_lotuswordpro.cxx @@ -39,7 +39,9 @@ namespace class LotusWordProTest : public test::FiltersTest { public: - LotusWordProTest(); + LotusWordProTest() : FiltersTest(true, false) {} + + virtual void setUp(); virtual bool load(const rtl::OUString &, const rtl::OUString &rURL, const rtl::OUString &); @@ -53,9 +55,10 @@ namespace uno::Reference<document::XFilter> m_xFilter; }; - LotusWordProTest::LotusWordProTest() - : FiltersTest(true, false) + void LotusWordProTest::setUp() { + test::FiltersTest::setUp(); + m_xFilter = uno::Reference< document::XFilter >(m_xSFactory->createInstance( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.comp.Writer.LotusWordProImportFilter"))), |