diff options
author | Jens Carl <j.carl43@gmx.de> | 2019-03-01 06:03:33 +0000 |
---|---|---|
committer | Jens Carl <j.carl43@gmx.de> | 2019-03-01 16:32:02 +0100 |
commit | 62ddc7ca3ba200fa9b01919d901e77c2a69e3c43 (patch) | |
tree | 9395d6159c446c5e89d835a3c95e5785cd6d5943 | |
parent | 5e363a4595e0a2ba2df4be940e81ec791eddfb82 (diff) |
Add XServiceInfo tests to ScDataPilotFieldGroupItemObj
Change-Id: I4be975c465b0a5427ab678eb58f9a1779ac6dd07
Reviewed-on: https://gerrit.libreoffice.org/68526
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
-rw-r--r-- | sc/qa/extras/scdatapilotfieldgroupitemobj.cxx | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/sc/qa/extras/scdatapilotfieldgroupitemobj.cxx b/sc/qa/extras/scdatapilotfieldgroupitemobj.cxx index 89dbc40a7e1d..b715a521359d 100644 --- a/sc/qa/extras/scdatapilotfieldgroupitemobj.cxx +++ b/sc/qa/extras/scdatapilotfieldgroupitemobj.cxx @@ -9,6 +9,7 @@ #include <test/calc_unoapi_test.hxx> #include <test/container/xnamed.hxx> +#include <test/lang/xserviceinfo.hxx> #include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/container/XIndexAccess.hpp> @@ -41,7 +42,9 @@ namespace sc_apitest { const auto nMaxFieldIndex = 6; -class ScDataPilotFieldGroupItemObj : public CalcUnoApiTest, public apitest::XNamed +class ScDataPilotFieldGroupItemObj : public CalcUnoApiTest, + public apitest::XNamed, + public apitest::XServiceInfo { public: ScDataPilotFieldGroupItemObj(); @@ -56,6 +59,11 @@ public: CPPUNIT_TEST(testGetName); CPPUNIT_TEST(testSetName); + // XServiceInfo + CPPUNIT_TEST(testGetImplementationName); + CPPUNIT_TEST(testGetSupportedServiceNames); + CPPUNIT_TEST(testSupportsService); + CPPUNIT_TEST_SUITE_END(); private: @@ -64,7 +72,8 @@ private: ScDataPilotFieldGroupItemObj::ScDataPilotFieldGroupItemObj() : CalcUnoApiTest("/sc/qa/extras/testdocuments") - , apitest::XNamed("aName") + , XNamed("aName") + , XServiceInfo("ScDataPilotFieldGroupItemObj", "com.sun.star.sheet.DataPilotFieldGroupItem") { } |