diff options
author | Jens Carl <j.carl43@gmx.de> | 2019-02-01 23:57:24 +0000 |
---|---|---|
committer | Jens Carl <j.carl43@gmx.de> | 2019-02-02 02:39:23 +0100 |
commit | 070967b25978c388e33860d69a8bf56b46b18f13 (patch) | |
tree | 30b3b4a69acb88e6ad138e0ba1ba2dd28b6c80cd /sc | |
parent | 3b79e1e35e527b6973bce9c76d2d036f4300ce49 (diff) |
tdf#45904 Move XIndexAccess Java tests to C++
Move XIndexAccess Java tests to C++ for ScDataPilotFieldsObj.
Change-Id: I277192a4e43a7ec45d27d93d32cad6b59534be46
Reviewed-on: https://gerrit.libreoffice.org/67267
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/extras/scdatapilotfieldsobj.cxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sc/qa/extras/scdatapilotfieldsobj.cxx b/sc/qa/extras/scdatapilotfieldsobj.cxx index 363724380b56..20b2c5359d6c 100644 --- a/sc/qa/extras/scdatapilotfieldsobj.cxx +++ b/sc/qa/extras/scdatapilotfieldsobj.cxx @@ -8,6 +8,7 @@ */ #include <test/calc_unoapi_test.hxx> +#include <test/container/xindexaccess.hxx> #include <test/container/xnameaccess.hxx> #include <com/sun/star/container/XIndexAccess.hpp> @@ -26,7 +27,9 @@ using namespace css; namespace sc_apitest { -class ScDataPilotFieldsObj : public CalcUnoApiTest, public apitest::XNameAccess +class ScDataPilotFieldsObj : public CalcUnoApiTest, + public apitest::XIndexAccess, + public apitest::XNameAccess { public: ScDataPilotFieldsObj(); @@ -36,6 +39,10 @@ public: CPPUNIT_TEST_SUITE(ScDataPilotFieldsObj); + // XIndexAccess + CPPUNIT_TEST(testGetByIndex); + CPPUNIT_TEST(testGetCount); + // XNameAccess CPPUNIT_TEST(testGetByName); CPPUNIT_TEST(testGetElementNames); @@ -49,6 +56,7 @@ private: ScDataPilotFieldsObj::ScDataPilotFieldsObj() : CalcUnoApiTest("/sc/qa/extras/testdocuments") + , XIndexAccess(6) , XNameAccess("") { } |