diff options
author | Jens Carl <j.carl43@gmx.de> | 2019-01-13 04:53:45 +0000 |
---|---|---|
committer | Jens Carl <j.carl43@gmx.de> | 2019-01-13 06:54:02 +0100 |
commit | d53fa1bbebf3d0ed9a8ad6d39117b076079d5b09 (patch) | |
tree | 6b81ef6ee60e8d50ff5bf722019430790cb45753 /sc/qa/extras/scdatabaserangesobj.cxx | |
parent | 7e79c8d6cf3dfd6db51fb3a952850e0089ada91d (diff) |
tdf#45904 Move XIndexAccess Java tests to C++
Move XIndexAccess Java tests to C++ for ScDatabaseRangesObj.
Change-Id: I1bb998f54617323a828290268e549924710aaf50
Reviewed-on: https://gerrit.libreoffice.org/66248
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'sc/qa/extras/scdatabaserangesobj.cxx')
-rw-r--r-- | sc/qa/extras/scdatabaserangesobj.cxx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sc/qa/extras/scdatabaserangesobj.cxx b/sc/qa/extras/scdatabaserangesobj.cxx index f37a262b2377..a8b81191cd84 100644 --- a/sc/qa/extras/scdatabaserangesobj.cxx +++ b/sc/qa/extras/scdatabaserangesobj.cxx @@ -9,6 +9,7 @@ #include <test/calc_unoapi_test.hxx> #include <test/container/xenumerationaccess.hxx> +#include <test/container/xindexaccess.hxx> #include <test/sheet/xdatabaseranges.hxx> #include <com/sun/star/beans/XPropertySet.hpp> @@ -28,7 +29,8 @@ namespace sc_apitest { class ScDatabaseRangesObj : public CalcUnoApiTest, public apitest::XDatabaseRanges, - public apitest::XEnumerationAccess + public apitest::XEnumerationAccess, + public apitest::XIndexAccess { public: ScDatabaseRangesObj(); @@ -45,6 +47,10 @@ public: // XEnumerationAccess CPPUNIT_TEST(testCreateEnumeration); + // XIndexAccess + CPPUNIT_TEST(testGetByIndex); + CPPUNIT_TEST(testGetCount); + CPPUNIT_TEST_SUITE_END(); private: @@ -53,6 +59,7 @@ private: ScDatabaseRangesObj::ScDatabaseRangesObj() : CalcUnoApiTest("/sc/qa/extras/testdocuments") + , XIndexAccess(1) { } @@ -85,7 +92,7 @@ void ScDatabaseRangesObj::tearDown() CPPUNIT_TEST_SUITE_REGISTRATION(ScDatabaseRangesObj); -} // end namespace +} // namespace sc_apitest CPPUNIT_PLUGIN_IMPLEMENT(); |