[Libreoffice-commits] core.git: sc/qa
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Mar 1 15:32:28 UTC 2019
sc/qa/extras/scdatapilotfieldgroupitemobj.cxx | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
New commits:
commit 62ddc7ca3ba200fa9b01919d901e77c2a69e3c43
Author: Jens Carl <j.carl43 at gmx.de>
AuthorDate: Fri Mar 1 06:03:33 2019 +0000
Commit: Jens Carl <j.carl43 at gmx.de>
CommitDate: Fri Mar 1 16:32:02 2019 +0100
Add XServiceInfo tests to ScDataPilotFieldGroupItemObj
Change-Id: I4be975c465b0a5427ab678eb58f9a1779ac6dd07
Reviewed-on: https://gerrit.libreoffice.org/68526
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43 at gmx.de>
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")
{
}
More information about the Libreoffice-commits
mailing list