diff options
author | Jens Carl <j.carl43@gmx.de> | 2020-02-26 22:22:17 -0800 |
---|---|---|
committer | Jens Carl <j.carl43@gmx.de> | 2020-02-27 08:41:47 +0100 |
commit | c6aceaa407faf9950675411cc24d0c156fc7d972 (patch) | |
tree | b5b7413751afa6950f0ecc3ab464806d40a650a8 /sc/qa | |
parent | 4a7cf6835c5ab4ca5657c955b5d32a0d3ddd2b1d (diff) |
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 <j.carl43@gmx.de>
Diffstat (limited to 'sc/qa')
-rw-r--r-- | sc/qa/extras/sctablesheetsobj.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
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 <test/calc_unoapi_test.hxx> #include <test/container/xenumerationaccess.hxx> +#include <test/container/xindexaccess.hxx> #include <test/container/xnameaccess.hxx> #include <test/container/xnamecontainer.hxx> #include <test/container/xnamereplace.hxx> @@ -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") |