diff options
author | Jens Carl <j.carl43@gmx.de> | 2019-03-16 20:26:22 +0000 |
---|---|---|
committer | Jens Carl <j.carl43@gmx.de> | 2019-03-17 04:03:42 +0100 |
commit | 1e176d3fc5c82a596f17f1a2faf4c72dea2943f4 (patch) | |
tree | d5a39da0c5fc2b1bbdbb57f784b05f4a698ed4fa /sc/qa | |
parent | 7331800888122916ca4973052a03412c8bcf088f (diff) |
tdf#45904 Move XElementAccess Java tests to C++
Move XElementAccess Java tests to C++ for ScAutoFormatsObj.
Change-Id: Ibd094955a1b811e0c5e06e8e4c80f357e54d8ac2
Reviewed-on: https://gerrit.libreoffice.org/69349
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'sc/qa')
-rw-r--r-- | sc/qa/extras/scautoformatsobj.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sc/qa/extras/scautoformatsobj.cxx b/sc/qa/extras/scautoformatsobj.cxx index 8a48db4d5812..20c0c3e62f29 100644 --- a/sc/qa/extras/scautoformatsobj.cxx +++ b/sc/qa/extras/scautoformatsobj.cxx @@ -8,12 +8,15 @@ */ #include <test/calc_unoapi_test.hxx> +#include <test/container/xelementaccess.hxx> #include <test/container/xindexaccess.hxx> #include <test/container/xnameaccess.hxx> #include <test/container/xnamecontainer.hxx> #include <test/container/xnamereplace.hxx> +#include <cppu/unotype.hxx> #include <com/sun/star/container/XNameContainer.hpp> +#include <com/sun/star/container/XNamed.hpp> #include <com/sun/star/lang/XComponent.hpp> #include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <com/sun/star/uno/XInterface.hpp> @@ -26,6 +29,7 @@ using namespace css; namespace sc_apitest { class ScAutoFormatsObj : public CalcUnoApiTest, + public apitest::XElementAccess, public apitest::XIndexAccess, public apitest::XNameAccess, public apitest::XNameContainer, @@ -40,6 +44,10 @@ public: CPPUNIT_TEST_SUITE(ScAutoFormatsObj); + // XElementAccess + CPPUNIT_TEST(testGetElementType); + CPPUNIT_TEST(testHasElements); + // XIndexAccess CPPUNIT_TEST(testGetByIndex); CPPUNIT_TEST(testGetCount); @@ -67,6 +75,7 @@ private: ScAutoFormatsObj::ScAutoFormatsObj() : CalcUnoApiTest("/sc/qa/extras/testdocuments") + , XElementAccess(cppu::UnoType<container::XNamed>::get()) , XIndexAccess(2) , XNameAccess("Default") , XNameContainer("ScAutoFormatsObj") |