tdf#45904 Move XElementAccess Java tests to C++
Move XElementAccess Java tests to C++ for ScDataPilotFieldGroupObj.
Change-Id: Ib96439216c67d66151ceb986c9b4520226437ab8
Reviewed-on: https://gerrit.libreoffice.org/68996
Tested-by: Jenkins
Reviewed-by: Jens Carl <[email protected]>
diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldGroupObj.csv b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldGroupObj.csv
index ffd0e8e..84b7d4d 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldGroupObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldGroupObj.csv
@@ -3,5 +3,3 @@
"ScDataPilotFieldGroupObj";"com::sun::star::container::XNameAccess";"hasByName()"
"ScDataPilotFieldGroupObj";"com::sun::star::container::XIndexAccess";"getCount()"
"ScDataPilotFieldGroupObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
"ScDataPilotFieldGroupObj";"com::sun::star::container::XElementAccess";"getElementType()"
"ScDataPilotFieldGroupObj";"com::sun::star::container::XElementAccess";"hasElements()"
diff --git a/sc/qa/extras/scdatapilotfieldgroupobj.cxx b/sc/qa/extras/scdatapilotfieldgroupobj.cxx
index 3d0a61e..41e2639 100644
--- a/sc/qa/extras/scdatapilotfieldgroupobj.cxx
+++ b/sc/qa/extras/scdatapilotfieldgroupobj.cxx
@@ -8,6 +8,7 @@
*/
#include <test/calc_unoapi_test.hxx>
#include <test/container/xelementaccess.hxx>
#include <test/container/xenumerationaccess.hxx>
#include <test/container/xnamed.hxx>
#include <comphelper/types.hxx>
@@ -39,6 +40,7 @@ using namespace css;
namespace sc_apitest
{
class ScDataPilotFieldGroupObj : public CalcUnoApiTest,
public apitest::XElementAccess,
public apitest::XEnumerationAccess,
public apitest::XNamed
{
@@ -51,6 +53,10 @@ public:
CPPUNIT_TEST_SUITE(ScDataPilotFieldGroupObj);
// XElementAccess
CPPUNIT_TEST(testGetElementType);
CPPUNIT_TEST(testHasElements);
// XEnumerationAccess
CPPUNIT_TEST(testCreateEnumeration);
@@ -67,6 +73,7 @@ private:
ScDataPilotFieldGroupObj::ScDataPilotFieldGroupObj()
: CalcUnoApiTest("/sc/qa/extras/testdocuments")
, XElementAccess(cppu::UnoType<container::XNamed>::get())
, XNamed("Group1")
{
}