diff options
author | Jens Carl <j.carl43@gmx.de> | 2019-01-13 04:59:57 +0000 |
---|---|---|
committer | Jens Carl <j.carl43@gmx.de> | 2019-01-13 07:00:53 +0100 |
commit | 29b322ebab31b83d1df470f7ec794d500e15b948 (patch) | |
tree | 600288078cd6ca266c8d05b43838ec8a300e9e8f /sc | |
parent | d53fa1bbebf3d0ed9a8ad6d39117b076079d5b09 (diff) |
tdf#45904 Move XElementAccess Java tests to C++
Move XElementAccess Java tests to C++ for ScDatabaseRangesObj.
Change-Id: I44e1021f4d312b0e3a0d254aeac5dc11b7f546bf
Reviewed-on: https://gerrit.libreoffice.org/66249
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/extras/scdatabaserangesobj.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sc/qa/extras/scdatabaserangesobj.cxx b/sc/qa/extras/scdatabaserangesobj.cxx index a8b81191cd84..a4c3b698300c 100644 --- a/sc/qa/extras/scdatabaserangesobj.cxx +++ b/sc/qa/extras/scdatabaserangesobj.cxx @@ -8,12 +8,14 @@ */ #include <test/calc_unoapi_test.hxx> +#include <test/container/xelementaccess.hxx> #include <test/container/xenumerationaccess.hxx> #include <test/container/xindexaccess.hxx> #include <test/sheet/xdatabaseranges.hxx> #include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/lang/XComponent.hpp> +#include <com/sun/star/sheet/XDatabaseRange.hpp> #include <com/sun/star/sheet/XDatabaseRanges.hpp> #include <com/sun/star/sheet/XSpreadsheetDocument.hpp> #include <com/sun/star/table/CellRangeAddress.hpp> @@ -21,6 +23,8 @@ #include <com/sun/star/uno/Reference.hxx> +#include <cppu/unotype.hxx> + using namespace css; using namespace css::uno; using namespace com::sun::star; @@ -29,6 +33,7 @@ namespace sc_apitest { class ScDatabaseRangesObj : public CalcUnoApiTest, public apitest::XDatabaseRanges, + public apitest::XElementAccess, public apitest::XEnumerationAccess, public apitest::XIndexAccess { @@ -44,6 +49,10 @@ public: // XDatabaseRanges CPPUNIT_TEST(testAddRemoveDbRanges); + // XElementAccess + CPPUNIT_TEST(testGetElementType); + CPPUNIT_TEST(testHasElements); + // XEnumerationAccess CPPUNIT_TEST(testCreateEnumeration); @@ -59,6 +68,7 @@ private: ScDatabaseRangesObj::ScDatabaseRangesObj() : CalcUnoApiTest("/sc/qa/extras/testdocuments") + , XElementAccess(cppu::UnoType<sheet::XDatabaseRange>::get()) , XIndexAccess(1) { } |