[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sat Mar 2 03:34:06 UTC 2019


 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotItemsObj.csv |    2 --
 sc/qa/extras/scdatapilotitemsobj.cxx                                |   10 +++++++++-
 2 files changed, 9 insertions(+), 3 deletions(-)

New commits:
commit ef8c413a08d6dc254b2fc243bba6bc5c09aa646b
Author:     Jens Carl <j.carl43 at gmx.de>
AuthorDate: Sat Mar 2 01:24:36 2019 +0000
Commit:     Jens Carl <j.carl43 at gmx.de>
CommitDate: Sat Mar 2 04:33:31 2019 +0100

    tdf#45904 Move XElementAccess Java tests to C++
    
    Move XElementAccess Java tests to C++ for ScDataPilotItemsObj.
    
    Change-Id: Ideb56b3f24d9b6045f68d7e5e84ee9858b6df7bf
    Reviewed-on: https://gerrit.libreoffice.org/68608
    Tested-by: Jenkins
    Reviewed-by: Jens Carl <j.carl43 at gmx.de>

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotItemsObj.csv b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotItemsObj.csv
index 6b5fa0c41ec7..5cdd8d3401cf 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotItemsObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotItemsObj.csv
@@ -3,6 +3,4 @@
 "ScDataPilotItemsObj";"com::sun::star::container::XNameAccess";"hasByName()"
 "ScDataPilotItemsObj";"com::sun::star::container::XIndexAccess";"getCount()"
 "ScDataPilotItemsObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
-"ScDataPilotItemsObj";"com::sun::star::container::XElementAccess";"getElementType()"
-"ScDataPilotItemsObj";"com::sun::star::container::XElementAccess";"hasElements()"
 "ScDataPilotItemsObj";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
diff --git a/sc/qa/extras/scdatapilotitemsobj.cxx b/sc/qa/extras/scdatapilotitemsobj.cxx
index 578668424302..1fd705cdc8f1 100644
--- a/sc/qa/extras/scdatapilotitemsobj.cxx
+++ b/sc/qa/extras/scdatapilotitemsobj.cxx
@@ -8,6 +8,7 @@
  */
 
 #include <test/calc_unoapi_test.hxx>
+#include <test/container/xelementaccess.hxx>
 #include <test/lang/xserviceinfo.hxx>
 
 #include <com/sun/star/beans/XPropertySet.hpp>
@@ -38,7 +39,9 @@ namespace sc_apitest
 {
 const auto nMaxFieldIndex = 6;
 
-class ScDataPilotItemsObj : public CalcUnoApiTest, public apitest::XServiceInfo
+class ScDataPilotItemsObj : public CalcUnoApiTest,
+                            public apitest::XElementAccess,
+                            public apitest::XServiceInfo
 {
 public:
     ScDataPilotItemsObj();
@@ -49,6 +52,10 @@ public:
 
     CPPUNIT_TEST_SUITE(ScDataPilotItemsObj);
 
+    // XElementAccess
+    CPPUNIT_TEST(testGetElementType);
+    CPPUNIT_TEST(testHasElements);
+
     // XServiceInfo
     CPPUNIT_TEST(testGetImplementationName);
     CPPUNIT_TEST(testGetSupportedServiceNames);
@@ -62,6 +69,7 @@ private:
 
 ScDataPilotItemsObj::ScDataPilotItemsObj()
     : CalcUnoApiTest("/sc/qa/extras/testdocuments")
+    , XElementAccess(cppu::UnoType<beans::XPropertySet>::get())
     , XServiceInfo("ScDataPilotItemsObj", "com.sun.star.sheet.DataPilotItems")
 {
 }


More information about the Libreoffice-commits mailing list