tdf#45904 Move XIndexAccess Java tests to C++

Move XIndexAccess Java tests to C++ for ScStyleFamilyObj.

	modified:   sc/qa/extras/scstylefamilyobj.cxx

Change-Id: I1ee22139effe5f3931fb40b46b9c5c5701fa415d
Reviewed-on: https://gerrit.libreoffice.org/69020
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleFamilyObj.csv b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleFamilyObj.csv
index 8c6fa00..4c5519b 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleFamilyObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleFamilyObj.csv
@@ -1,5 +1,3 @@
"ScStyleFamilyObj";"com::sun::star::container::XNameReplace#optional";"replaceByName()"
"ScStyleFamilyObj";"com::sun::star::container::XNameContainer#optional";"insertByName()"
"ScStyleFamilyObj";"com::sun::star::container::XNameContainer#optional";"removeByName()"
"ScStyleFamilyObj";"com::sun::star::container::XIndexAccess#optional";"getCount()"
"ScStyleFamilyObj";"com::sun::star::container::XIndexAccess#optional";"getByIndex()"
diff --git a/sc/qa/extras/scstylefamilyobj.cxx b/sc/qa/extras/scstylefamilyobj.cxx
index 632fe4d..c9df85f 100644
--- a/sc/qa/extras/scstylefamilyobj.cxx
+++ b/sc/qa/extras/scstylefamilyobj.cxx
@@ -9,6 +9,7 @@

#include <test/calc_unoapi_test.hxx>
#include <test/container/xelementaccess.hxx>
#include <test/container/xindexaccess.hxx>
#include <test/container/xnameaccess.hxx>
#include <cppu/unotype.hxx>

@@ -30,6 +31,7 @@
{
class ScStyleFamilyObj : public CalcUnoApiTest,
                         public apitest::XElementAccess,
                         public apitest::XIndexAccess,
                         public apitest::XNameAccess
{
public:
@@ -45,6 +47,10 @@
    CPPUNIT_TEST(testGetElementType);
    CPPUNIT_TEST(testHasElements);

    // XIndexAccess
    CPPUNIT_TEST(testGetByIndex);
    CPPUNIT_TEST(testGetCount);

    // XNameAccess
    CPPUNIT_TEST(testGetByName);
    CPPUNIT_TEST(testGetElementNames);
@@ -59,6 +65,7 @@
ScStyleFamilyObj::ScStyleFamilyObj()
    : CalcUnoApiTest("/sc/qa/extras/testdocuemts")
    , XElementAccess(cppu::UnoType<style::XStyle>::get())
    , XIndexAccess(19)
    , XNameAccess("Default")
{
}