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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Mar 13 18:36:10 UTC 2019


 sc/qa/extras/scstylefamilyobj.cxx |   10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

New commits:
commit c9b19808ba06b2c3a573e90c7a649de9b3338109
Author:     Jens Carl <j.carl43 at gmx.de>
AuthorDate: Tue Mar 12 22:59:22 2019 +0000
Commit:     Jens Carl <j.carl43 at gmx.de>
CommitDate: Wed Mar 13 19:35:46 2019 +0100

    Add XServiceInfo tests to ScStyleFamilyObj
    
    Change-Id: Id31bd7df4dbbb5bde5b37236958e2a64c2fb9b9c
    Reviewed-on: https://gerrit.libreoffice.org/69141
    Tested-by: Jenkins
    Reviewed-by: Jens Carl <j.carl43 at gmx.de>

diff --git a/sc/qa/extras/scstylefamilyobj.cxx b/sc/qa/extras/scstylefamilyobj.cxx
index fc0e75ccf3df..c2dfffd81491 100644
--- a/sc/qa/extras/scstylefamilyobj.cxx
+++ b/sc/qa/extras/scstylefamilyobj.cxx
@@ -13,6 +13,7 @@
 #include <test/container/xnameaccess.hxx>
 #include <test/container/xnamecontainer.hxx>
 #include <test/container/xnamereplace.hxx>
+#include <test/lang/xserviceinfo.hxx>
 #include <cppu/unotype.hxx>
 
 #include <com/sun/star/container/XIndexAccess.hpp>
@@ -36,7 +37,8 @@ class ScStyleFamilyObj : public CalcUnoApiTest,
                          public apitest::XIndexAccess,
                          public apitest::XNameAccess,
                          public apitest::XNameContainer,
-                         public apitest::XNameReplace
+                         public apitest::XNameReplace,
+                         public apitest::XServiceInfo
 {
 public:
     ScStyleFamilyObj();
@@ -70,6 +72,11 @@ public:
     // XNameReplace
     CPPUNIT_TEST(testReplaceByName);
 
+    // XServiceInfo
+    CPPUNIT_TEST(testGetImplementationName);
+    CPPUNIT_TEST(testGetSupportedServiceNames);
+    CPPUNIT_TEST(testSupportsService);
+
     CPPUNIT_TEST_SUITE_END();
 
 private:
@@ -83,6 +90,7 @@ ScStyleFamilyObj::ScStyleFamilyObj()
     , XNameAccess("Default")
     , XNameContainer("Default")
     , XNameReplace("Default")
+    , XServiceInfo("ScStyleFamilyObj", "com.sun.star.style.StyleFamily")
 {
 }
 


More information about the Libreoffice-commits mailing list