From 8f29f31b41136acbea8ca21525f9623948a1a4b8 Mon Sep 17 00:00:00 2001 From: Jens Carl Date: Tue, 2 Apr 2019 00:12:28 +0000 Subject: tdf#45904 Move XNamed Java tests to C++ Move XNamed Java tests to C++ for ScAutoFormatObj. Change-Id: I9ef1ec50c7decbc610a60cdc487b11cad2791b1b Reviewed-on: https://gerrit.libreoffice.org/70096 Tested-by: Jenkins Reviewed-by: Jens Carl --- qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAutoFormatObj.csv | 2 -- sc/qa/extras/scautoformatobj.cxx | 9 ++++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAutoFormatObj.csv b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAutoFormatObj.csv index ac08c66f293c..96344c70f53d 100644 --- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAutoFormatObj.csv +++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAutoFormatObj.csv @@ -1,5 +1,3 @@ -"ScAutoFormatObj";"com::sun::star::container::XNamed";"getName()" -"ScAutoFormatObj";"com::sun::star::container::XNamed";"setName()" "ScAutoFormatObj";"com::sun::star::beans::XPropertySet";"getPropertySetInfo()" "ScAutoFormatObj";"com::sun::star::beans::XPropertySet";"setPropertyValue()" "ScAutoFormatObj";"com::sun::star::beans::XPropertySet";"getPropertyValue()" diff --git a/sc/qa/extras/scautoformatobj.cxx b/sc/qa/extras/scautoformatobj.cxx index 1f64c0b9c295..525160e86ffc 100644 --- a/sc/qa/extras/scautoformatobj.cxx +++ b/sc/qa/extras/scautoformatobj.cxx @@ -11,6 +11,7 @@ #include #include #include +#include #include #include @@ -31,7 +32,8 @@ class ScAutoFormatObj : public CalcUnoApiTest, public apitest::TableAutoFormat, public apitest::XElementAccess, public apitest::XEnumerationAccess, - public apitest::XIndexAccess + public apitest::XIndexAccess, + public apitest::XNamed { public: ScAutoFormatObj(); @@ -56,6 +58,10 @@ public: CPPUNIT_TEST(testGetByIndex); CPPUNIT_TEST(testGetCount); + // XNamed + CPPUNIT_TEST(testGetName); + CPPUNIT_TEST(testSetName); + CPPUNIT_TEST_SUITE_END(); private: @@ -66,6 +72,7 @@ ScAutoFormatObj::ScAutoFormatObj() : CalcUnoApiTest("/sc/qa/extras/testdocuments") , XElementAccess(cppu::UnoType::get()) , XIndexAccess(16) + , XNamed("Default") { } -- cgit