tdf#45904 Move XIndexAccess Java tests to C++
Move XIndexAccess Java tests to C++ for ScChartsObj.
Change-Id: I1a6babb59e6feb2ed825f9ca698a8852f8bce6bb
Reviewed-on: https://gerrit.libreoffice.org/68989
Tested-by: Jenkins
Reviewed-by: Jens Carl <[email protected]>
diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScChartsObj.csv b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScChartsObj.csv
index 149d92e..6befc7f 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScChartsObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScChartsObj.csv
@@ -1,7 +1,5 @@
"ScChartsObj";"com::sun::star::container::XNameAccess";"getByName()"
"ScChartsObj";"com::sun::star::container::XNameAccess";"getElementNames()"
"ScChartsObj";"com::sun::star::container::XNameAccess";"hasByName()"
"ScChartsObj";"com::sun::star::container::XIndexAccess";"getCount()"
"ScChartsObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
"ScChartsObj";"com::sun::star::table::XTableCharts";"addNewByName()"
"ScChartsObj";"com::sun::star::table::XTableCharts";"removeByName()"
diff --git a/sc/qa/extras/scchartsobj.cxx b/sc/qa/extras/scchartsobj.cxx
index df40621..caeff55 100644
--- a/sc/qa/extras/scchartsobj.cxx
+++ b/sc/qa/extras/scchartsobj.cxx
@@ -10,6 +10,7 @@
#include <test/calc_unoapi_test.hxx>
#include <test/container/xelementaccess.hxx>
#include <test/container/xenumerationaccess.hxx>
#include <test/container/xindexaccess.hxx>
#include <cppu/unotype.hxx>
#include <com/sun/star/awt/Rectangle.hpp>
@@ -36,7 +37,8 @@ namespace sc_apitest
{
class ScChartsObj : public CalcUnoApiTest,
public apitest::XEnumerationAccess,
public apitest::XElementAccess
public apitest::XElementAccess,
public apitest::XIndexAccess
{
public:
ScChartsObj();
@@ -54,6 +56,10 @@ public:
CPPUNIT_TEST(testGetElementType);
CPPUNIT_TEST(testHasElements);
// XIndexAccess
CPPUNIT_TEST(testGetByIndex);
CPPUNIT_TEST(testGetCount);
CPPUNIT_TEST_SUITE_END();
private:
@@ -63,6 +69,7 @@ private:
ScChartsObj::ScChartsObj()
: CalcUnoApiTest("/sc/qa/extras/testdocuments")
, XElementAccess(cppu::UnoType<table::XTableChart>::get())
, XIndexAccess(1)
{
}