diff options
author | Jens Carl <j.carl43@gmx.de> | 2019-04-01 05:28:57 +0000 |
---|---|---|
committer | Jens Carl <j.carl43@gmx.de> | 2019-04-01 08:19:21 +0200 |
commit | ae75372dbdb74eaf959b566f1d9c2b77043e736a (patch) | |
tree | 981a892ded1b2fb41d55cf8971510ffbef3ef9c2 /sc | |
parent | af5f02ec27e3403c1e4c43bca621e2a0d261aa0e (diff) |
tdf#45904 Move XIndexAccess Java tests to C++
Move XIndexAccess Java tests to C++ for ScSubTotalDescriptorBase.
Change-Id: I86f39c2ef5559f8b5ac4d45daeb6bcad1ab01c8c
Reviewed-on: https://gerrit.libreoffice.org/70039
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/extras/scsubtotaldescriptorbase.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sc/qa/extras/scsubtotaldescriptorbase.cxx b/sc/qa/extras/scsubtotaldescriptorbase.cxx index 5d77331f3801..93ff4de17081 100644 --- a/sc/qa/extras/scsubtotaldescriptorbase.cxx +++ b/sc/qa/extras/scsubtotaldescriptorbase.cxx @@ -9,6 +9,7 @@ #include <test/calc_unoapi_test.hxx> #include <test/container/xenumerationaccess.hxx> +#include <test/container/xindexaccess.hxx> #include <test/sheet/subtotaldescriptor.hxx> #include <test/sheet/xsubtotaldescriptor.hxx> @@ -33,6 +34,7 @@ namespace sc_apitest class ScSubTotalDescriptorBase : public CalcUnoApiTest, public apitest::SubTotalDescriptor, public apitest::XEnumerationAccess, + public apitest::XIndexAccess, public apitest::XSubTotalDescriptor { public: @@ -50,6 +52,10 @@ public: // XEnumerationAccess CPPUNIT_TEST(testCreateEnumeration); + // XIndexAccess + CPPUNIT_TEST(testGetByIndex); + CPPUNIT_TEST(testGetCount); + // XSubTotalDescriptor CPPUNIT_TEST(testAddNew); CPPUNIT_TEST(testClear); @@ -62,6 +68,7 @@ private: ScSubTotalDescriptorBase::ScSubTotalDescriptorBase() : CalcUnoApiTest("/sc/qa/extras/testdocuments") + , XIndexAccess(1) { } |