From c6aceaa407faf9950675411cc24d0c156fc7d972 Mon Sep 17 00:00:00 2001 From: Jens Carl Date: Wed, 26 Feb 2020 22:22:17 -0800 Subject: tdf#45904 Move XIndexAccess Java tests to C++ Move XIndexAccess Java tests to C++ for ScTableSheetsObj. Change-Id: Idb130a51dc024cebbbc739d15c767f99558a69b7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89609 Tested-by: Jenkins Reviewed-by: Jens Carl --- sc/qa/extras/sctablesheetsobj.cxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'sc') diff --git a/sc/qa/extras/sctablesheetsobj.cxx b/sc/qa/extras/sctablesheetsobj.cxx index 34b1e03cfa90..8b61d3825639 100644 --- a/sc/qa/extras/sctablesheetsobj.cxx +++ b/sc/qa/extras/sctablesheetsobj.cxx @@ -9,6 +9,7 @@ #include #include +#include #include #include #include @@ -23,6 +24,7 @@ using namespace css::uno; namespace sc_apitest { class ScTableSheetsObj : public CalcUnoApiTest, public ::apitest::XEnumerationAccess, + public ::apitest::XIndexAccess, public ::apitest::XNameAccess, public ::apitest::XNameContainer, public ::apitest::XNameReplace, @@ -40,6 +42,10 @@ public: // XEnumerationAccess CPPUNIT_TEST(testCreateEnumeration); + // XIndexAccess + CPPUNIT_TEST(testGetByIndex); + CPPUNIT_TEST(testGetCount); + // XNameAccess CPPUNIT_TEST(testGetByName); CPPUNIT_TEST(testGetElementNames); @@ -83,6 +89,7 @@ protected: ScTableSheetsObj::ScTableSheetsObj() : CalcUnoApiTest("/sc/qa/extras/testdocuments") + , ::apitest::XIndexAccess(3) , ::apitest::XNameAccess("Sheet1") , ::apitest::XNameContainer("Sheet2") , ::apitest::XNameReplace("Sheet2") -- cgit