diff options
author | Jens Carl <j.carl43@gmx.de> | 2019-04-01 06:20:03 +0000 |
---|---|---|
committer | Jens Carl <j.carl43@gmx.de> | 2019-04-01 09:27:55 +0200 |
commit | 5e67b38309b4c9c925530cafa6b9476f9839a48e (patch) | |
tree | 2ed75d51b811aaa966233c2ca5a07535816f95f6 | |
parent | f32da5eec98ea29515d1b738c280acd96d5c3516 (diff) |
tdf#45904 Move XElementAccess Java tests to C++
Move XElementAccess Java tests to C++ for ScSubTotalDescriptorBase.
Change-Id: I49a599b3670e709ee3170fd62c4c06295645b278
Reviewed-on: https://gerrit.libreoffice.org/70040
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
-rw-r--r-- | qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSubTotalDescriptorBase.csv | 2 | ||||
-rw-r--r-- | sc/qa/extras/scsubtotaldescriptorbase.cxx | 9 |
2 files changed, 9 insertions, 2 deletions
diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSubTotalDescriptorBase.csv b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSubTotalDescriptorBase.csv index a001e7a8497c..1bcb85bf438f 100644 --- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSubTotalDescriptorBase.csv +++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSubTotalDescriptorBase.csv @@ -1,5 +1,3 @@ -"ScSubTotalDescriptorBase";"com::sun::star::container::XElementAccess";"getElementType()" -"ScSubTotalDescriptorBase";"com::sun::star::container::XElementAccess";"hasElements()" "ScSubTotalDescriptorBase";"com::sun::star::beans::XPropertySet";"getPropertySetInfo()" "ScSubTotalDescriptorBase";"com::sun::star::beans::XPropertySet";"setPropertyValue()" "ScSubTotalDescriptorBase";"com::sun::star::beans::XPropertySet";"getPropertyValue()" diff --git a/sc/qa/extras/scsubtotaldescriptorbase.cxx b/sc/qa/extras/scsubtotaldescriptorbase.cxx index 93ff4de17081..54176abd6ea1 100644 --- a/sc/qa/extras/scsubtotaldescriptorbase.cxx +++ b/sc/qa/extras/scsubtotaldescriptorbase.cxx @@ -8,10 +8,12 @@ */ #include <test/calc_unoapi_test.hxx> +#include <test/container/xelementaccess.hxx> #include <test/container/xenumerationaccess.hxx> #include <test/container/xindexaccess.hxx> #include <test/sheet/subtotaldescriptor.hxx> #include <test/sheet/xsubtotaldescriptor.hxx> +#include <cppu/unotype.hxx> #include <com/sun/star/container/XIndexAccess.hpp> #include <com/sun/star/lang/XComponent.hpp> @@ -22,6 +24,7 @@ #include <com/sun/star/sheet/XSpreadsheet.hpp> #include <com/sun/star/sheet/XSubTotalCalculatable.hpp> #include <com/sun/star/sheet/XSubTotalDescriptor.hpp> +#include <com/sun/star/sheet/XSubTotalField.hpp> #include <com/sun/star/uno/XInterface.hpp> #include <com/sun/star/uno/Reference.hxx> @@ -33,6 +36,7 @@ namespace sc_apitest { class ScSubTotalDescriptorBase : public CalcUnoApiTest, public apitest::SubTotalDescriptor, + public apitest::XElementAccess, public apitest::XEnumerationAccess, public apitest::XIndexAccess, public apitest::XSubTotalDescriptor @@ -49,6 +53,10 @@ public: // SubTotalDescriptor CPPUNIT_TEST(testSubTotalDescriptorProperties); + // XElementAccess + CPPUNIT_TEST(testGetElementType); + CPPUNIT_TEST(testHasElements); + // XEnumerationAccess CPPUNIT_TEST(testCreateEnumeration); @@ -68,6 +76,7 @@ private: ScSubTotalDescriptorBase::ScSubTotalDescriptorBase() : CalcUnoApiTest("/sc/qa/extras/testdocuments") + , XElementAccess(cppu::UnoType<sheet::XSubTotalField>::get()) , XIndexAccess(1) { } |