summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Carl <j.carl43@gmx.de>2019-03-12 22:59:22 +0000
committerJens Carl <j.carl43@gmx.de>2019-03-13 19:35:46 +0100
commitc9b19808ba06b2c3a573e90c7a649de9b3338109 (patch)
treefcab94fdb13903f032fcc817dba4ee56e9e8fa72
parent07ffbfa41c000446ec84ae3ae0d64feedf530723 (diff)
Add XServiceInfo tests to ScStyleFamilyObj
Change-Id: Id31bd7df4dbbb5bde5b37236958e2a64c2fb9b9c Reviewed-on: https://gerrit.libreoffice.org/69141 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
-rw-r--r--sc/qa/extras/scstylefamilyobj.cxx10
1 files changed, 9 insertions, 1 deletions
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")
{
}