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

Jens Carl (via logerrit) logerrit at kemper.freedesktop.org
Sun Apr 21 06:08:31 UTC 2019


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

New commits:
commit a7c72b3725f38bba8463ebf10958574a4334837e
Author:     Jens Carl <j.carl43 at gmx.de>
AuthorDate: Sun Apr 21 04:56:46 2019 +0000
Commit:     Jens Carl <j.carl43 at gmx.de>
CommitDate: Sun Apr 21 08:07:37 2019 +0200

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

diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnObj.csv b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnObj.csv
index a20406eb6b9a..70a50be2c57c 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnObj.csv
@@ -1,5 +1,3 @@
-"ScTableColumnObj";"com::sun::star::container::XNamed";"getName()"
-"ScTableColumnObj";"com::sun::star::container::XNamed";"setName()"
 "ScTableColumnObj";"com::sun::star::beans::XPropertySet";"getPropertySetInfo()"
 "ScTableColumnObj";"com::sun::star::beans::XPropertySet";"setPropertyValue()"
 "ScTableColumnObj";"com::sun::star::beans::XPropertySet";"getPropertyValue()"
diff --git a/sc/qa/extras/sctablecolumnobj.cxx b/sc/qa/extras/sctablecolumnobj.cxx
index 9a8b8c79e556..c65a8683b89c 100644
--- a/sc/qa/extras/sctablecolumnobj.cxx
+++ b/sc/qa/extras/sctablecolumnobj.cxx
@@ -8,6 +8,7 @@
  */
 
 #include <test/calc_unoapi_test.hxx>
+#include <test/container/xnamed.hxx>
 #include <test/table/xcellrange.hxx>
 
 #include <com/sun/star/container/XIndexAccess.hpp>
@@ -25,7 +26,7 @@ using namespace css;
 
 namespace sc_apitest
 {
-class ScTableColumnObj : public CalcUnoApiTest, public apitest::XCellRange
+class ScTableColumnObj : public CalcUnoApiTest, public apitest::XCellRange, public apitest::XNamed
 {
 public:
     ScTableColumnObj();
@@ -41,6 +42,11 @@ public:
     CPPUNIT_TEST(testGetCellRangeByName);
     CPPUNIT_TEST(testGetCellRangeByPosition);
 
+    // XNamed
+    CPPUNIT_TEST(testGetName);
+    // because TableColumnNames are fixed, test for an exception
+    CPPUNIT_TEST(testSetNameThrowsException);
+
     CPPUNIT_TEST_SUITE_END();
 
 private:
@@ -50,6 +56,7 @@ private:
 ScTableColumnObj::ScTableColumnObj()
     : CalcUnoApiTest("/sc/qa/extras/testdocuments")
     , XCellRange("K1:K1")
+    , XNamed("K")
 {
 }
 


More information about the Libreoffice-commits mailing list