diff options
author | Jens Carl <j.carl43@gmx.de> | 2019-04-02 00:12:28 +0000 |
---|---|---|
committer | Jens Carl <j.carl43@gmx.de> | 2019-04-02 03:09:35 +0200 |
commit | 8f29f31b41136acbea8ca21525f9623948a1a4b8 (patch) | |
tree | 1b7b809ab5623f5262b0c926d4bb4f1035a4a61b | |
parent | 321607572f0880d1cd6c6de9ee931c33d90bae7c (diff) |
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 <j.carl43@gmx.de>
-rw-r--r-- | qadevOOo/objdsc/sc/com.sun.star.comp.office.ScAutoFormatObj.csv | 2 | ||||
-rw-r--r-- | 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 <test/container/xelementaccess.hxx> #include <test/container/xenumerationaccess.hxx> #include <test/container/xindexaccess.hxx> +#include <test/container/xnamed.hxx> #include <test/sheet/tableautoformat.hxx> #include <cppu/unotype.hxx> @@ -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<beans::XPropertySet>::get()) , XIndexAccess(16) + , XNamed("Default") { } |