diff options
author | Jens Carl <j.carl43@gmx.de> | 2018-12-18 20:02:04 +0000 |
---|---|---|
committer | Jens Carl <j.carl43@gmx.de> | 2018-12-19 09:09:27 +0100 |
commit | 8deed9bc13fcec2300d3f537d2cc419625b8c499 (patch) | |
tree | f903177a7abf59d8901bb795298bfd63d30f9478 /sc | |
parent | dd2421b148fedc40547ccff8b332285047a0b09e (diff) |
tdf#45904 Move XElementAccess Java tests to C++
Move XElementAccess Java tests to C++ for ScTableRowsObj.
Change-Id: Iefe5024cbde5f1583a560d8569e9aa460b68e42e
Reviewed-on: https://gerrit.libreoffice.org/65372
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/extras/sctablerowsobj.cxx | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sc/qa/extras/sctablerowsobj.cxx b/sc/qa/extras/sctablerowsobj.cxx index 67c1f86efafc..6814900063ab 100644 --- a/sc/qa/extras/sctablerowsobj.cxx +++ b/sc/qa/extras/sctablerowsobj.cxx @@ -8,6 +8,7 @@ */ #include <test/calc_unoapi_test.hxx> +#include <test/container/xelementaccess.hxx> #include <test/container/xindexaccess.hxx> #include <com/sun/star/container/XNameAccess.hpp> @@ -15,18 +16,23 @@ #include <com/sun/star/sheet/XSpreadsheet.hpp> #include <com/sun/star/sheet/XSpreadsheetDocument.hpp> #include <com/sun/star/sheet/XSpreadsheets.hpp> +#include <com/sun/star/table/XCellRange.hpp> #include <com/sun/star/table/XColumnRowRange.hpp> #include <com/sun/star/table/XTableRows.hpp> #include <com/sun/star/uno/XInterface.hpp> #include <com/sun/star/uno/Reference.hxx> +#include <cppu/unotype.hxx> + using namespace css; using namespace css::uno; namespace sc_apitest { -class ScTableRowsObj : public CalcUnoApiTest, public apitest::XIndexAccess +class ScTableRowsObj : public CalcUnoApiTest, + public apitest::XElementAccess, + public apitest::XIndexAccess { public: ScTableRowsObj(); @@ -37,6 +43,10 @@ public: CPPUNIT_TEST_SUITE(ScTableRowsObj); + // XElementAccess + CPPUNIT_TEST(testGetElementType); + CPPUNIT_TEST(testHasElements); + // XIndexAccess CPPUNIT_TEST(testGetByIndex); CPPUNIT_TEST(testGetCount); @@ -49,6 +59,7 @@ private: ScTableRowsObj::ScTableRowsObj() : CalcUnoApiTest("/sc/qa/extras/testdocuemts") + , XElementAccess(cppu::UnoType<table::XCellRange>::get()) , XIndexAccess(1048576) { } |