Kaydet (Commit) 62ddc7ca authored tarafından Jens Carl's avatar Jens Carl

Add XServiceInfo tests to ScDataPilotFieldGroupItemObj

Change-Id: I4be975c465b0a5427ab678eb58f9a1779ac6dd07
Reviewed-on: https://gerrit.libreoffice.org/68526
Tested-by: Jenkins
Reviewed-by: 's avatarJens Carl <j.carl43@gmx.de>
üst 5e363a45
......@@ -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")
{
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment