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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Jan 23 22:25:29 UTC 2019


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

New commits:
commit be3dce73f9ad16145b5f898058bab416504bc9c3
Author:     Jens Carl <j.carl43 at gmx.de>
AuthorDate: Wed Jan 23 19:02:58 2019 +0000
Commit:     Jens Carl <j.carl43 at gmx.de>
CommitDate: Wed Jan 23 23:24:59 2019 +0100

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

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSheetLinksObj.csv b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSheetLinksObj.csv
index 6a9e3218d0bb..9903e39826f0 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSheetLinksObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSheetLinksObj.csv
@@ -1,5 +1,3 @@
 "ScSheetLinksObj";"com::sun::star::container::XNameAccess";"getByName()"
 "ScSheetLinksObj";"com::sun::star::container::XNameAccess";"getElementNames()"
 "ScSheetLinksObj";"com::sun::star::container::XNameAccess";"hasByName()"
-"ScSheetLinksObj";"com::sun::star::container::XIndexAccess";"getCount()"
-"ScSheetLinksObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
diff --git a/sc/qa/extras/scsheetlinksobj.cxx b/sc/qa/extras/scsheetlinksobj.cxx
index 2ec4ccf0be6e..350924dcdd70 100644
--- a/sc/qa/extras/scsheetlinksobj.cxx
+++ b/sc/qa/extras/scsheetlinksobj.cxx
@@ -10,6 +10,7 @@
 #include <test/calc_unoapi_test.hxx>
 #include <test/container/xelementaccess.hxx>
 #include <test/container/xenumerationaccess.hxx>
+#include <test/container/xindexaccess.hxx>
 
 #include <cppu/unotype.hxx>
 #include <rtl/string.hxx>
@@ -32,7 +33,8 @@ namespace sc_apitest
 {
 class ScSheetLinksObj : public CalcUnoApiTest,
                         public apitest::XElementAccess,
-                        public apitest::XEnumerationAccess
+                        public apitest::XEnumerationAccess,
+                        public apitest::XIndexAccess
 {
 public:
     ScSheetLinksObj();
@@ -50,6 +52,10 @@ public:
     // XEnumerationAccess
     CPPUNIT_TEST(testCreateEnumeration);
 
+    // XIndexAccess
+    CPPUNIT_TEST(testGetByIndex);
+    CPPUNIT_TEST(testGetCount);
+
     CPPUNIT_TEST_SUITE_END();
 
 private:
@@ -59,6 +65,7 @@ private:
 ScSheetLinksObj::ScSheetLinksObj()
     : CalcUnoApiTest("/sc/qa/extras/testdocuments")
     , XElementAccess(cppu::UnoType<beans::XPropertySet>::get())
+    , XIndexAccess(1)
 {
 }
 


More information about the Libreoffice-commits mailing list