summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Carl <j.carl43@gmx.de>2019-02-13 06:01:41 +0000
committerJens Carl <j.carl43@gmx.de>2019-02-13 17:50:18 +0100
commitb53dc3c30a8d6bae8325cbace174c9f02b5c59cc (patch)
tree0fad73113aaaec622738c8dec878f80f34f1d1c1
parentbbd722dcd808fdcec225c78f09c11a21248e4377 (diff)
Add XNameContainer tests to ScDataPilotFieldGroupsObj
Change-Id: I34a62522abf482291cdeeb43aa6fdd298a04f93c Reviewed-on: https://gerrit.libreoffice.org/67749 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
-rw-r--r--sc/qa/extras/scdatapilotfieldgroupsobj.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/qa/extras/scdatapilotfieldgroupsobj.cxx b/sc/qa/extras/scdatapilotfieldgroupsobj.cxx
index 613678fbed88..228075df34fd 100644
--- a/sc/qa/extras/scdatapilotfieldgroupsobj.cxx
+++ b/sc/qa/extras/scdatapilotfieldgroupsobj.cxx
@@ -12,6 +12,7 @@
#include <test/container/xenumerationaccess.hxx>
#include <test/container/xindexaccess.hxx>
#include <test/container/xnameaccess.hxx>
+#include <test/container/xnamecontainer.hxx>
#include <test/lang/xserviceinfo.hxx>
#include <comphelper/types.hxx>
@@ -50,6 +51,7 @@ class ScDataPilotFieldGroupItemObj : public CalcUnoApiTest,
public apitest::XEnumerationAccess,
public apitest::XIndexAccess,
public apitest::XNameAccess,
+ public apitest::XNameContainer,
public apitest::XServiceInfo
{
public:
@@ -77,6 +79,9 @@ public:
CPPUNIT_TEST(testGetElementNames);
CPPUNIT_TEST(testHasByName);
+ // XNameContainer
+ CPPUNIT_TEST(testRemoveByName);
+
// XServiceInfo
CPPUNIT_TEST(testGetImplementationName);
CPPUNIT_TEST(testGetSupportedServiceNames);
@@ -93,6 +98,7 @@ ScDataPilotFieldGroupItemObj::ScDataPilotFieldGroupItemObj()
, XElementAccess(cppu::UnoType<container::XNameAccess>::get())
, XIndexAccess(1)
, XNameAccess("Group1")
+ , XNameContainer("Group1")
, XServiceInfo("ScDataPilotFieldGroupsObj", "com.sun.star.sheet.DataPilotFieldGroups")
{
}