tdf#45904 Move XIndexAccess Java tests to C++
Move XIndexAccess Java tests to C++ for ScTabViewObj.
Change-Id: Ic3364f405e4e4c42443a7f439a257ed6328f32a8
Reviewed-on: https://gerrit.libreoffice.org/74586
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTabViewObj.csv b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTabViewObj.csv
index eee960d..ffd0cf5 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTabViewObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTabViewObj.csv
@@ -1,5 +1,3 @@
"ScTabViewObj";"com::sun::star::container::XIndexAccess";"getCount()"
"ScTabViewObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
"ScTabViewObj";"com::sun::star::lang::XComponent";"dispose()"
"ScTabViewObj";"com::sun::star::lang::XComponent";"addEventListener()"
"ScTabViewObj";"com::sun::star::lang::XComponent";"removeEventListener()"
diff --git a/sc/qa/extras/sctabviewobj.cxx b/sc/qa/extras/sctabviewobj.cxx
index 14b46ab..fef454f 100644
--- a/sc/qa/extras/sctabviewobj.cxx
+++ b/sc/qa/extras/sctabviewobj.cxx
@@ -9,6 +9,7 @@
#include <test/calc_unoapi_test.hxx>
#include <test/container/xenumerationaccess.hxx>
#include <test/container/xindexaccess.hxx>
#include <test/sheet/spreadsheetviewsettings.hxx>
#include <test/sheet/xactivationbroadcaster.hxx>
#include <test/sheet/xcellrangereferrer.hxx>
@@ -35,6 +36,7 @@
public apitest::XActivationBroadcaster,
public apitest::XCellRangeReferrer,
public apitest::XEnumerationAccess,
public apitest::XIndexAccess,
public apitest::XSpreadsheetView,
public apitest::XViewFreezable,
public apitest::XViewSplitable
@@ -63,6 +65,10 @@
// XEnumerationAccess
CPPUNIT_TEST(testCreateEnumeration);
// XIndexAccess
CPPUNIT_TEST(testGetByIndex);
CPPUNIT_TEST(testGetCount);
// XSpreadsheetView
CPPUNIT_TEST(testGetSetActiveSheet);
@@ -80,6 +86,7 @@
ScTabViewObj::ScTabViewObj()
: CalcUnoApiTest("/sc/qa/extras/testdocuments")
, XIndexAccess(1)
{
}