From 7422d394812958a2014615b996df0378cc7d495f Mon Sep 17 00:00:00 2001 From: Jens Carl Date: Fri, 25 Jan 2019 17:41:27 +0000 Subject: tdf#45904 Move XPropertySet Java tests to C++ Move XPropertySet Java tests to C++ for ScSpreadsheetSettings. Change-Id: Id969a566fcb4e544c26a4097e0f49a01bc967ad7 Reviewed-on: https://gerrit.libreoffice.org/66926 Tested-by: Jenkins Reviewed-by: Jens Carl --- sc/qa/extras/scspreadsheetsettings.cxx | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'sc/qa/extras/scspreadsheetsettings.cxx') diff --git a/sc/qa/extras/scspreadsheetsettings.cxx b/sc/qa/extras/scspreadsheetsettings.cxx index 4efd21102624..5835877e2dc0 100644 --- a/sc/qa/extras/scspreadsheetsettings.cxx +++ b/sc/qa/extras/scspreadsheetsettings.cxx @@ -8,6 +8,7 @@ */ #include +#include #include #include @@ -23,7 +24,9 @@ using namespace com::sun::star; namespace sc_apitest { -class ScSpreadsheetSettings : public CalcUnoApiTest, public apitest::GlobalSheetSettings +class ScSpreadsheetSettings : public CalcUnoApiTest, + public apitest::GlobalSheetSettings, + public apitest::XPropertySet { public: ScSpreadsheetSettings(); @@ -37,6 +40,13 @@ public: // GlobalSheetSettings CPPUNIT_TEST(testGlobalSheetSettingsProperties); + // XPropertySet + CPPUNIT_TEST(testGetPropertySetInfo); + CPPUNIT_TEST(testGetPropertyValue); + CPPUNIT_TEST(testSetPropertyValue); + CPPUNIT_TEST(testPropertyChangeListener); + CPPUNIT_TEST(testVetoableChangeListener); + CPPUNIT_TEST_SUITE_END(); private: @@ -45,6 +55,7 @@ private: ScSpreadsheetSettings::ScSpreadsheetSettings() : CalcUnoApiTest("/sc/qa/extras/testdocuments") + , XPropertySet({ "LinkUpdateMode", "UsePrinterMetrics", "UserLists" }) { } @@ -70,7 +81,7 @@ void ScSpreadsheetSettings::tearDown() CPPUNIT_TEST_SUITE_REGISTRATION(ScSpreadsheetSettings); -} // end namespace +} // namespace sc_apitest CPPUNIT_PLUGIN_IMPLEMENT(); -- cgit