diff options
author | Jens Carl <j.carl43@gmx.de> | 2019-03-16 19:32:25 +0000 |
---|---|---|
committer | Jens Carl <j.carl43@gmx.de> | 2019-03-17 04:03:31 +0100 |
commit | 7331800888122916ca4973052a03412c8bcf088f (patch) | |
tree | 27b4e9f68286cd4d07acbdda190025c6a3a88ee9 /sc | |
parent | b8e7f938e4abbe39623d307ed7fe27a2916e260c (diff) |
tdf#45904 Move XIndexAccess Java tests to C++
Move XIndexAccess Java tests to C++ for ScAutoFormatsObj.
Change-Id: Ic3c66d0c1ca1f5a833217fdc27fba5403f63412f
Reviewed-on: https://gerrit.libreoffice.org/69348
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/extras/scautoformatsobj.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sc/qa/extras/scautoformatsobj.cxx b/sc/qa/extras/scautoformatsobj.cxx index 6613b93ead88..8a48db4d5812 100644 --- a/sc/qa/extras/scautoformatsobj.cxx +++ b/sc/qa/extras/scautoformatsobj.cxx @@ -8,6 +8,7 @@ */ #include <test/calc_unoapi_test.hxx> +#include <test/container/xindexaccess.hxx> #include <test/container/xnameaccess.hxx> #include <test/container/xnamecontainer.hxx> #include <test/container/xnamereplace.hxx> @@ -25,6 +26,7 @@ using namespace css; namespace sc_apitest { class ScAutoFormatsObj : public CalcUnoApiTest, + public apitest::XIndexAccess, public apitest::XNameAccess, public apitest::XNameContainer, public apitest::XNameReplace @@ -38,6 +40,10 @@ public: CPPUNIT_TEST_SUITE(ScAutoFormatsObj); + // XIndexAccess + CPPUNIT_TEST(testGetByIndex); + CPPUNIT_TEST(testGetCount); + // XNameAccess CPPUNIT_TEST(testGetByName); CPPUNIT_TEST(testGetElementNames); @@ -61,6 +67,7 @@ private: ScAutoFormatsObj::ScAutoFormatsObj() : CalcUnoApiTest("/sc/qa/extras/testdocuments") + , XIndexAccess(2) , XNameAccess("Default") , XNameContainer("ScAutoFormatsObj") , XNameReplace("ScAutoFormatsObj") |