diff options
author | Jens Carl <j.carl43@gmx.de> | 2019-04-02 00:06:44 +0000 |
---|---|---|
committer | Jens Carl <j.carl43@gmx.de> | 2019-04-02 03:09:14 +0200 |
commit | 321607572f0880d1cd6c6de9ee931c33d90bae7c (patch) | |
tree | 69bcac6f52445d16dca1a11cb2c87d291f6b5043 /sc/qa/extras/scautoformatobj.cxx | |
parent | 331e0c83466edef000ffb02b3e55cb49c5580347 (diff) |
tdf#45904 Move XElementAccess Java tests to C++
Move XElementAccess Java tests to C++ for ScAutoFormatObj.
Change-Id: I926052ed79d6639ef3898f6486b626ca6cc042c3
Reviewed-on: https://gerrit.libreoffice.org/70095
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'sc/qa/extras/scautoformatobj.cxx')
-rw-r--r-- | sc/qa/extras/scautoformatobj.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sc/qa/extras/scautoformatobj.cxx b/sc/qa/extras/scautoformatobj.cxx index 8f86f46d2f9c..1f64c0b9c295 100644 --- a/sc/qa/extras/scautoformatobj.cxx +++ b/sc/qa/extras/scautoformatobj.cxx @@ -8,9 +8,11 @@ */ #include <test/calc_unoapi_test.hxx> +#include <test/container/xelementaccess.hxx> #include <test/container/xenumerationaccess.hxx> #include <test/container/xindexaccess.hxx> #include <test/sheet/tableautoformat.hxx> +#include <cppu/unotype.hxx> #include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/container/XIndexAccess.hpp> @@ -27,6 +29,7 @@ namespace sc_apitest { class ScAutoFormatObj : public CalcUnoApiTest, public apitest::TableAutoFormat, + public apitest::XElementAccess, public apitest::XEnumerationAccess, public apitest::XIndexAccess { @@ -42,6 +45,10 @@ public: // TableAutoFormat CPPUNIT_TEST(testTableAutoFormatProperties); + // XElementAccess + CPPUNIT_TEST(testGetElementType); + CPPUNIT_TEST(testHasElements); + // XEnumerationAccess CPPUNIT_TEST(testCreateEnumeration); @@ -57,6 +64,7 @@ private: ScAutoFormatObj::ScAutoFormatObj() : CalcUnoApiTest("/sc/qa/extras/testdocuments") + , XElementAccess(cppu::UnoType<beans::XPropertySet>::get()) , XIndexAccess(16) { } |