tdf#45904 Move XEnumerationAccess Java test to C++

Move XEnumerationAccess Java test to C++ for ScHeaderFieldsObj.

Change-Id: Ibead91f6c4369bb75e218eadb99776b0d1fb7cf4
Reviewed-on: https://gerrit.libreoffice.org/64799
Tested-by: Jenkins
Reviewed-by: Jens Carl <[email protected]>
diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScHeaderFieldsObj.csv b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScHeaderFieldsObj.csv
index 532a598..1d68820 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScHeaderFieldsObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScHeaderFieldsObj.csv
@@ -1,3 +1,2 @@
"ScHeaderFieldsObj";"com::sun::star::container::XElementAccess";"getElementType()"
"ScHeaderFieldsObj";"com::sun::star::container::XElementAccess";"hasElements()"
"ScHeaderFieldsObj";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
diff --git a/sc/qa/extras/scheaderfieldsobj.cxx b/sc/qa/extras/scheaderfieldsobj.cxx
index ea1379c..e02d631 100644
--- a/sc/qa/extras/scheaderfieldsobj.cxx
+++ b/sc/qa/extras/scheaderfieldsobj.cxx
@@ -8,6 +8,7 @@
 */

#include <test/calc_unoapi_test.hxx>
#include <test/container/xenumerationaccess.hxx>
#include <test/util/xrefreshable.hxx>

#include <com/sun/star/beans/XPropertySet.hpp>
@@ -33,7 +34,9 @@ using namespace css::uno;

namespace sc_apitest
{
class ScCellFieldsObj : public CalcUnoApiTest, public apitest::XRefreshable
class ScCellFieldsObj : public CalcUnoApiTest,
                        public apitest::XEnumerationAccess,
                        public apitest::XRefreshable
{
public:
    ScCellFieldsObj();
@@ -44,6 +47,9 @@ public:

    CPPUNIT_TEST_SUITE(ScCellFieldsObj);

    // XEnumerationAccess
    CPPUNIT_TEST(testCreateEnumeration);

    // XRefreshable
    CPPUNIT_TEST(testRefreshListener);