summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorJens Carl <j.carl43@gmx.de>2019-03-10 06:30:26 +0000
committerJens Carl <j.carl43@gmx.de>2019-03-10 17:17:08 +0100
commit11ea5fe055ed345154138c814e38e54c6624ee89 (patch)
treead95f904dfa2bb3f197addd2756b332eb9bea054 /sc
parentf59942a9c784a12fc2087b17b31a68cc0031c20c (diff)
tdf#45904 Move XIndexAccess Java tests to C++
Move XIndexAccess Java tests to C++ for ScDataPilotFieldGroupObj. Change-Id: I8908ede3a83ed9427ea364705020314f42a4fba0 Reviewed-on: https://gerrit.libreoffice.org/68997 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'sc')
-rw-r--r--sc/qa/extras/scdatapilotfieldgroupobj.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/sc/qa/extras/scdatapilotfieldgroupobj.cxx b/sc/qa/extras/scdatapilotfieldgroupobj.cxx
index 41e2639be372..27de6ec202b8 100644
--- a/sc/qa/extras/scdatapilotfieldgroupobj.cxx
+++ b/sc/qa/extras/scdatapilotfieldgroupobj.cxx
@@ -10,6 +10,7 @@
#include <test/calc_unoapi_test.hxx>
#include <test/container/xelementaccess.hxx>
#include <test/container/xenumerationaccess.hxx>
+#include <test/container/xindexaccess.hxx>
#include <test/container/xnamed.hxx>
#include <comphelper/types.hxx>
#include <rtl/string.hxx>
@@ -42,6 +43,7 @@ namespace sc_apitest
class ScDataPilotFieldGroupObj : public CalcUnoApiTest,
public apitest::XElementAccess,
public apitest::XEnumerationAccess,
+ public apitest::XIndexAccess,
public apitest::XNamed
{
public:
@@ -60,6 +62,10 @@ public:
// XEnumerationAccess
CPPUNIT_TEST(testCreateEnumeration);
+ // XIndexAccess
+ CPPUNIT_TEST(testGetByIndex);
+ CPPUNIT_TEST(testGetCount);
+
// XNamed
CPPUNIT_TEST(testGetName);
CPPUNIT_TEST(testSetName);
@@ -74,6 +80,7 @@ private:
ScDataPilotFieldGroupObj::ScDataPilotFieldGroupObj()
: CalcUnoApiTest("/sc/qa/extras/testdocuments")
, XElementAccess(cppu::UnoType<container::XNamed>::get())
+ , XIndexAccess(2)
, XNamed("Group1")
{
}