tdf#45904 Move XNamed Java tests to C++

Move XNamed Java tests to C++ for ScDataPilotFieldGroupObj.

Change-Id: I93be09ab557ac221c146be0a4bb0290688fac4fe
Reviewed-on: https://gerrit.libreoffice.org/68995
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 789e9a09e..ffd0e8e 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldGroupObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldGroupObj.csv
@@ -5,5 +5,3 @@
"ScDataPilotFieldGroupObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
"ScDataPilotFieldGroupObj";"com::sun::star::container::XElementAccess";"getElementType()"
"ScDataPilotFieldGroupObj";"com::sun::star::container::XElementAccess";"hasElements()"
"ScDataPilotFieldGroupObj";"com::sun::star::container::XNamed";"getName()"
"ScDataPilotFieldGroupObj";"com::sun::star::container::XNamed";"setName()"
diff --git a/sc/qa/extras/scdatapilotfieldgroupobj.cxx b/sc/qa/extras/scdatapilotfieldgroupobj.cxx
index 57ef2d1..3d0a61e 100644
--- a/sc/qa/extras/scdatapilotfieldgroupobj.cxx
+++ b/sc/qa/extras/scdatapilotfieldgroupobj.cxx
@@ -9,6 +9,7 @@

#include <test/calc_unoapi_test.hxx>
#include <test/container/xenumerationaccess.hxx>
#include <test/container/xnamed.hxx>
#include <comphelper/types.hxx>
#include <rtl/string.hxx>

@@ -37,7 +38,9 @@ using namespace css;

namespace sc_apitest
{
class ScDataPilotFieldGroupObj : public CalcUnoApiTest, public apitest::XEnumerationAccess
class ScDataPilotFieldGroupObj : public CalcUnoApiTest,
                                 public apitest::XEnumerationAccess,
                                 public apitest::XNamed
{
public:
    ScDataPilotFieldGroupObj();
@@ -51,6 +54,10 @@ public:
    // XEnumerationAccess
    CPPUNIT_TEST(testCreateEnumeration);

    // XNamed
    CPPUNIT_TEST(testGetName);
    CPPUNIT_TEST(testSetName);

    CPPUNIT_TEST_SUITE_END();

private:
@@ -60,6 +67,7 @@ private:

ScDataPilotFieldGroupObj::ScDataPilotFieldGroupObj()
    : CalcUnoApiTest("/sc/qa/extras/testdocuments")
    , XNamed("Group1")
{
}