summaryrefslogtreecommitdiff
path: root/sc/qa
diff options
context:
space:
mode:
authorJens Carl <j.carl43@gmx.de>2019-03-16 20:44:27 +0000
committerJens Carl <j.carl43@gmx.de>2019-03-17 04:04:14 +0100
commit218916eb47e35fd14832d8f52225bf1d4d9c80a6 (patch)
tree297ddc22f8b9f38c47b85010ab99234091e5ae26 /sc/qa
parent0c6c0fe64c5be46712f21204a2d8ed2f99e4af62 (diff)
Add XServiceInfo tests to ScAutoFormatsObj
Change-Id: I88b817b5d2f6b13275585da2db377ace0fef6fb3 Reviewed-on: https://gerrit.libreoffice.org/69352 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'sc/qa')
-rw-r--r--sc/qa/extras/scautoformatsobj.cxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/sc/qa/extras/scautoformatsobj.cxx b/sc/qa/extras/scautoformatsobj.cxx
index 7507fc04758a..dec3c4f17f63 100644
--- a/sc/qa/extras/scautoformatsobj.cxx
+++ b/sc/qa/extras/scautoformatsobj.cxx
@@ -14,6 +14,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/XNameContainer.hpp>
@@ -35,7 +36,8 @@ class ScAutoFormatsObj : public CalcUnoApiTest,
public apitest::XIndexAccess,
public apitest::XNameAccess,
public apitest::XNameContainer,
- public apitest::XNameReplace
+ public apitest::XNameReplace,
+ public apitest::XServiceInfo
{
public:
ScAutoFormatsObj();
@@ -72,6 +74,11 @@ public:
// XNameReplace
CPPUNIT_TEST(testReplaceByName);
+ // XServiceInfo
+ CPPUNIT_TEST(testGetImplementationName);
+ CPPUNIT_TEST(testGetSupportedServiceNames);
+ CPPUNIT_TEST(testSupportsService);
+
CPPUNIT_TEST_SUITE_END();
private:
@@ -85,6 +92,7 @@ ScAutoFormatsObj::ScAutoFormatsObj()
, XNameAccess("Default")
, XNameContainer("ScAutoFormatsObj")
, XNameReplace("ScAutoFormatsObj")
+ , XServiceInfo("stardiv.StarCalc.ScAutoFormatsObj", "com.sun.star.sheet.TableAutoFormats")
{
}