tdf#45904 Move XIndexAccess Java tests to C++
Move XIndexAccess Java tests to C++ for ScDataPilotFieldsObj.
Change-Id: I277192a4e43a7ec45d27d93d32cad6b59534be46
Reviewed-on: https://gerrit.libreoffice.org/67267
Tested-by: Jenkins
Reviewed-by: Jens Carl <[email protected]>
diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldsObj.csv b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldsObj.csv
index 8b5162f..4af41c7 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldsObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldsObj.csv
@@ -1,5 +1,3 @@
"ScDataPilotFieldsObj";"com::sun::star::container::XIndexAccess";"getCount()"
"ScDataPilotFieldsObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
"ScDataPilotFieldsObj";"com::sun::star::container::XElementAccess";"getElementType()"
"ScDataPilotFieldsObj";"com::sun::star::container::XElementAccess";"hasElements()"
"ScDataPilotFieldsObj";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
diff --git a/sc/qa/extras/scdatapilotfieldsobj.cxx b/sc/qa/extras/scdatapilotfieldsobj.cxx
index 3637243..20b2c53 100644
--- a/sc/qa/extras/scdatapilotfieldsobj.cxx
+++ b/sc/qa/extras/scdatapilotfieldsobj.cxx
@@ -8,6 +8,7 @@
*/
#include <test/calc_unoapi_test.hxx>
#include <test/container/xindexaccess.hxx>
#include <test/container/xnameaccess.hxx>
#include <com/sun/star/container/XIndexAccess.hpp>
@@ -26,7 +27,9 @@
using namespace css;
namespace sc_apitest
{
class ScDataPilotFieldsObj : public CalcUnoApiTest, public apitest::XNameAccess
class ScDataPilotFieldsObj : public CalcUnoApiTest,
public apitest::XIndexAccess,
public apitest::XNameAccess
{
public:
ScDataPilotFieldsObj();
@@ -36,6 +39,10 @@ public:
CPPUNIT_TEST_SUITE(ScDataPilotFieldsObj);
// XIndexAccess
CPPUNIT_TEST(testGetByIndex);
CPPUNIT_TEST(testGetCount);
// XNameAccess
CPPUNIT_TEST(testGetByName);
CPPUNIT_TEST(testGetElementNames);
@@ -49,6 +56,7 @@ private:
ScDataPilotFieldsObj::ScDataPilotFieldsObj()
: CalcUnoApiTest("/sc/qa/extras/testdocuments")
, XIndexAccess(6)
, XNameAccess("")
{
}