minor tweaks to existing unittests
Change-Id: I64769fee917c5d8c6450a19ad53fdf795e280c98
This commit is contained in:
parent
79f79ab077
commit
6357299275
2 changed files with 3 additions and 2 deletions
|
@ -80,6 +80,7 @@ void DBAccessTest::setUp()
|
|||
// This is a bit of a fudge, we do this to ensure that ScGlobals::ensure,
|
||||
// which is a private symbol to us, gets called
|
||||
mxDesktop = com::sun::star::frame::Desktop::create( comphelper::getComponentContext(getMultiServiceFactory()) );
|
||||
CPPUNIT_ASSERT(mxDesktop.is());
|
||||
}
|
||||
|
||||
void DBAccessTest::tearDown()
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
|
||||
#include <sal/config.h>
|
||||
#include <test/unoapi_test.hxx>
|
||||
#include <unotest/macros_test.hxx>
|
||||
#include <rtl/strbuf.hxx>
|
||||
#include <osl/file.hxx>
|
||||
|
||||
|
@ -81,7 +80,8 @@ void ScMacrosTest::testMSP()
|
|||
SfxObjectShell* pFoundShell = SfxObjectShell::GetShellFromComponent(xComponent);
|
||||
|
||||
CPPUNIT_ASSERT_MESSAGE("Failed to access document shell", pFoundShell);
|
||||
ScDocShell* xDocSh = static_cast<ScDocShell*>(pFoundShell);
|
||||
ScDocShell* xDocSh = dynamic_cast<ScDocShell*>(pFoundShell);
|
||||
CPPUNIT_ASSERT(xDocSh != NULL);
|
||||
|
||||
pFoundShell->CallXScript(xComponent, sUrl, aParams, aRet, aOutParamIndex,aOutParam);
|
||||
OUString sResult;
|
||||
|
|
Loading…
Reference in a new issue