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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sun Mar 10 16:16:40 UTC 2019


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

New commits:
commit 9e04b1011ce975d9cae3909fbbf781765cf98d65
Author:     Jens Carl <j.carl43 at gmx.de>
AuthorDate: Sun Mar 10 06:22:48 2019 +0000
Commit:     Jens Carl <j.carl43 at gmx.de>
CommitDate: Sun Mar 10 17:16:18 2019 +0100

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

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldGroupObj.csv b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldGroupObj.csv
index 789e9a09e0b8..ffd0e8e5550c 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldGroupObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldGroupObj.csv
@@ -5,5 +5,3 @@
 "ScDataPilotFieldGroupObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
 "ScDataPilotFieldGroupObj";"com::sun::star::container::XElementAccess";"getElementType()"
 "ScDataPilotFieldGroupObj";"com::sun::star::container::XElementAccess";"hasElements()"
-"ScDataPilotFieldGroupObj";"com::sun::star::container::XNamed";"getName()"
-"ScDataPilotFieldGroupObj";"com::sun::star::container::XNamed";"setName()"
diff --git a/sc/qa/extras/scdatapilotfieldgroupobj.cxx b/sc/qa/extras/scdatapilotfieldgroupobj.cxx
index 57ef2d13fdc5..3d0a61e72349 100644
--- a/sc/qa/extras/scdatapilotfieldgroupobj.cxx
+++ b/sc/qa/extras/scdatapilotfieldgroupobj.cxx
@@ -9,6 +9,7 @@
 
 #include <test/calc_unoapi_test.hxx>
 #include <test/container/xenumerationaccess.hxx>
+#include <test/container/xnamed.hxx>
 #include <comphelper/types.hxx>
 #include <rtl/string.hxx>
 
@@ -37,7 +38,9 @@ using namespace css;
 
 namespace sc_apitest
 {
-class ScDataPilotFieldGroupObj : public CalcUnoApiTest, public apitest::XEnumerationAccess
+class ScDataPilotFieldGroupObj : public CalcUnoApiTest,
+                                 public apitest::XEnumerationAccess,
+                                 public apitest::XNamed
 {
 public:
     ScDataPilotFieldGroupObj();
@@ -51,6 +54,10 @@ public:
     // XEnumerationAccess
     CPPUNIT_TEST(testCreateEnumeration);
 
+    // XNamed
+    CPPUNIT_TEST(testGetName);
+    CPPUNIT_TEST(testSetName);
+
     CPPUNIT_TEST_SUITE_END();
 
 private:
@@ -60,6 +67,7 @@ private:
 
 ScDataPilotFieldGroupObj::ScDataPilotFieldGroupObj()
     : CalcUnoApiTest("/sc/qa/extras/testdocuments")
+    , XNamed("Group1")
 {
 }
 


More information about the Libreoffice-commits mailing list