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

Jens Carl (via logerrit) logerrit at kemper.freedesktop.org
Mon Apr 1 06:19:44 UTC 2019


 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSubTotalDescriptorBase.csv |    2 --
 sc/qa/extras/scsubtotaldescriptorbase.cxx                                |    7 +++++++
 2 files changed, 7 insertions(+), 2 deletions(-)

New commits:
commit ae75372dbdb74eaf959b566f1d9c2b77043e736a
Author:     Jens Carl <j.carl43 at gmx.de>
AuthorDate: Mon Apr 1 05:28:57 2019 +0000
Commit:     Jens Carl <j.carl43 at gmx.de>
CommitDate: Mon Apr 1 08:19:21 2019 +0200

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

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 2ba64e29988c..a001e7a8497c 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::XIndexAccess";"getCount()"
-"ScSubTotalDescriptorBase";"com::sun::star::container::XIndexAccess";"getByIndex()"
 "ScSubTotalDescriptorBase";"com::sun::star::container::XElementAccess";"getElementType()"
 "ScSubTotalDescriptorBase";"com::sun::star::container::XElementAccess";"hasElements()"
 "ScSubTotalDescriptorBase";"com::sun::star::beans::XPropertySet";"getPropertySetInfo()"
diff --git a/sc/qa/extras/scsubtotaldescriptorbase.cxx b/sc/qa/extras/scsubtotaldescriptorbase.cxx
index 5d77331f3801..93ff4de17081 100644
--- a/sc/qa/extras/scsubtotaldescriptorbase.cxx
+++ b/sc/qa/extras/scsubtotaldescriptorbase.cxx
@@ -9,6 +9,7 @@
 
 #include <test/calc_unoapi_test.hxx>
 #include <test/container/xenumerationaccess.hxx>
+#include <test/container/xindexaccess.hxx>
 #include <test/sheet/subtotaldescriptor.hxx>
 #include <test/sheet/xsubtotaldescriptor.hxx>
 
@@ -33,6 +34,7 @@ namespace sc_apitest
 class ScSubTotalDescriptorBase : public CalcUnoApiTest,
                                  public apitest::SubTotalDescriptor,
                                  public apitest::XEnumerationAccess,
+                                 public apitest::XIndexAccess,
                                  public apitest::XSubTotalDescriptor
 {
 public:
@@ -50,6 +52,10 @@ public:
     // XEnumerationAccess
     CPPUNIT_TEST(testCreateEnumeration);
 
+    // XIndexAccess
+    CPPUNIT_TEST(testGetByIndex);
+    CPPUNIT_TEST(testGetCount);
+
     // XSubTotalDescriptor
     CPPUNIT_TEST(testAddNew);
     CPPUNIT_TEST(testClear);
@@ -62,6 +68,7 @@ private:
 
 ScSubTotalDescriptorBase::ScSubTotalDescriptorBase()
     : CalcUnoApiTest("/sc/qa/extras/testdocuments")
+    , XIndexAccess(1)
 {
 }
 


More information about the Libreoffice-commits mailing list