diff options
author | Jens Carl <j.carl43@gmx.de> | 2018-12-18 07:05:24 +0000 |
---|---|---|
committer | Jens Carl <j.carl43@gmx.de> | 2018-12-18 11:21:49 +0100 |
commit | 839d651db92655f392107da864195bb86f67f704 (patch) | |
tree | bc52a9637c46d34abd9a8ea3a1b78a70e10f7e81 /sc | |
parent | f8d6de19181d749d7c2b345ce7084c0c07fa3eab (diff) |
tdf#45904 Move XIndexAccess Java tests to C++
Move XIndexAccess Java tests to C++ for ScScenariosObj.
Change-Id: Idfe41c83adcec7a9cb6b29da9aafcb8c7c25c711
Reviewed-on: https://gerrit.libreoffice.org/65306
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/extras/scscenariosobj.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sc/qa/extras/scscenariosobj.cxx b/sc/qa/extras/scscenariosobj.cxx index baa263998ecc..415ffec08d6d 100644 --- a/sc/qa/extras/scscenariosobj.cxx +++ b/sc/qa/extras/scscenariosobj.cxx @@ -9,6 +9,7 @@ #include <test/calc_unoapi_test.hxx> #include <test/container/xenumerationaccess.hxx> +#include <test/container/xindexaccess.hxx> #include <test/sheet/xscenarios.hxx> #include <com/sun/star/container/XIndexAccess.hpp> @@ -20,12 +21,12 @@ #include <com/sun/star/sheet/XSpreadsheet.hpp> #include <com/sun/star/table/XCellRange.hpp> #include <com/sun/star/table/CellRangeAddress.hpp> +#include <com/sun/star/uno/XInterface.hpp> #include <unonames.hxx> #include <com/sun/star/uno/Reference.hxx> #include <com/sun/star/uno/Sequence.hxx> -#include <com/sun/star/uno/XInterface.hpp> using namespace css; using namespace css::uno; @@ -35,6 +36,7 @@ namespace sc_apitest { class ScScenariosObj : public CalcUnoApiTest, public apitest::XEnumerationAccess, + public apitest::XIndexAccess, public apitest::XScenarios { public: @@ -49,6 +51,10 @@ public: // XEnumerationAccess CPPUNIT_TEST(testCreateEnumeration); + // XIndexAccess + CPPUNIT_TEST(testGetByIndex); + CPPUNIT_TEST(testGetCount); + // XScenarios CPPUNIT_TEST(testAddNewByName); CPPUNIT_TEST(testRemoveByName); @@ -61,6 +67,7 @@ private: ScScenariosObj::ScScenariosObj() : CalcUnoApiTest("/sc/qa/extras/testdocuments") + , XIndexAccess(1) { } |