summaryrefslogtreecommitdiff
path: root/sc/qa/extras/scspreadsheetsettings.cxx
diff options
context:
space:
mode:
authorJens Carl <j.carl43@gmx.de>2019-01-25 17:41:27 +0000
committerJens Carl <j.carl43@gmx.de>2019-01-25 21:52:05 +0100
commit7422d394812958a2014615b996df0378cc7d495f (patch)
tree5f24fc07bbc85dec75dc74f8c96b305ed12c8bca /sc/qa/extras/scspreadsheetsettings.cxx
parent79b04f8b02268399fd5388227e947d547366a4e5 (diff)
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 <j.carl43@gmx.de>
Diffstat (limited to 'sc/qa/extras/scspreadsheetsettings.cxx')
-rw-r--r--sc/qa/extras/scspreadsheetsettings.cxx15
1 files changed, 13 insertions, 2 deletions
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 <test/calc_unoapi_test.hxx>
+#include <test/beans/xpropertyset.hxx>
#include <test/sheet/globalsheetsettings.hxx>
#include <com/sun/star/lang/XComponent.hpp>
@@ -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();