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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sun Jan 13 05:54:21 UTC 2019


 qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDatabaseRangesObj.csv |    2 -
 sc/qa/extras/scdatabaserangesobj.cxx                                |   11 ++++++++--
 2 files changed, 9 insertions(+), 4 deletions(-)

New commits:
commit d53fa1bbebf3d0ed9a8ad6d39117b076079d5b09
Author:     Jens Carl <j.carl43 at gmx.de>
AuthorDate: Sun Jan 13 04:53:45 2019 +0000
Commit:     Jens Carl <j.carl43 at gmx.de>
CommitDate: Sun Jan 13 06:54:02 2019 +0100

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

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDatabaseRangesObj.csv b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDatabaseRangesObj.csv
index 0b86a569afeb..769a68a75970 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDatabaseRangesObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDatabaseRangesObj.csv
@@ -1,7 +1,5 @@
 "ScDatabaseRangesObj";"com::sun::star::container::XNameAccess";"getByName()"
 "ScDatabaseRangesObj";"com::sun::star::container::XNameAccess";"getElementNames()"
 "ScDatabaseRangesObj";"com::sun::star::container::XNameAccess";"hasByName()"
-"ScDatabaseRangesObj";"com::sun::star::container::XIndexAccess";"getCount()"
-"ScDatabaseRangesObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
 "ScDatabaseRangesObj";"com::sun::star::container::XElementAccess";"getElementType()"
 "ScDatabaseRangesObj";"com::sun::star::container::XElementAccess";"hasElements()"
diff --git a/sc/qa/extras/scdatabaserangesobj.cxx b/sc/qa/extras/scdatabaserangesobj.cxx
index f37a262b2377..a8b81191cd84 100644
--- a/sc/qa/extras/scdatabaserangesobj.cxx
+++ b/sc/qa/extras/scdatabaserangesobj.cxx
@@ -9,6 +9,7 @@
 
 #include <test/calc_unoapi_test.hxx>
 #include <test/container/xenumerationaccess.hxx>
+#include <test/container/xindexaccess.hxx>
 #include <test/sheet/xdatabaseranges.hxx>
 
 #include <com/sun/star/beans/XPropertySet.hpp>
@@ -28,7 +29,8 @@ namespace sc_apitest
 {
 class ScDatabaseRangesObj : public CalcUnoApiTest,
                             public apitest::XDatabaseRanges,
-                            public apitest::XEnumerationAccess
+                            public apitest::XEnumerationAccess,
+                            public apitest::XIndexAccess
 {
 public:
     ScDatabaseRangesObj();
@@ -45,6 +47,10 @@ public:
     // XEnumerationAccess
     CPPUNIT_TEST(testCreateEnumeration);
 
+    // XIndexAccess
+    CPPUNIT_TEST(testGetByIndex);
+    CPPUNIT_TEST(testGetCount);
+
     CPPUNIT_TEST_SUITE_END();
 
 private:
@@ -53,6 +59,7 @@ private:
 
 ScDatabaseRangesObj::ScDatabaseRangesObj()
     : CalcUnoApiTest("/sc/qa/extras/testdocuments")
+    , XIndexAccess(1)
 {
 }
 
@@ -85,7 +92,7 @@ void ScDatabaseRangesObj::tearDown()
 
 CPPUNIT_TEST_SUITE_REGISTRATION(ScDatabaseRangesObj);
 
-} // end namespace
+} // namespace sc_apitest
 
 CPPUNIT_PLUGIN_IMPLEMENT();
 


More information about the Libreoffice-commits mailing list