Kaydet (Commit) 184d0c4b authored tarafından Jens Carl's avatar Jens Carl

tdf#45904 Move XIndexAccess Java tests to C++

Move XIndexAccess Java tests to C++ for ScLabelRangesObj.

Change-Id: I448561be2395beb9448ffcfc29434a94468166cb
Reviewed-on: https://gerrit.libreoffice.org/64431
Tested-by: Jenkins
Reviewed-by: 's avatarJens Carl <j.carl43@gmx.de>
üst a0ac944b
"ScLabelRangesObj";"com::sun::star::container::XIndexAccess";"getCount()"
"ScLabelRangesObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
"ScLabelRangesObj";"com::sun::star::container::XElementAccess";"getElementType()" "ScLabelRangesObj";"com::sun::star::container::XElementAccess";"getElementType()"
"ScLabelRangesObj";"com::sun::star::container::XElementAccess";"hasElements()" "ScLabelRangesObj";"com::sun::star::container::XElementAccess";"hasElements()"
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
#include <test/calc_unoapi_test.hxx> #include <test/calc_unoapi_test.hxx>
#include <test/container/xenumerationaccess.hxx> #include <test/container/xenumerationaccess.hxx>
#include <test/container/xindexaccess.hxx>
#include <test/sheet/xlabelranges.hxx> #include <test/sheet/xlabelranges.hxx>
#include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/beans/XPropertySet.hpp>
...@@ -16,9 +17,9 @@ ...@@ -16,9 +17,9 @@
#include <com/sun/star/sheet/XLabelRanges.hpp> #include <com/sun/star/sheet/XLabelRanges.hpp>
#include <com/sun/star/sheet/XSpreadsheetDocument.hpp> #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
#include <com/sun/star/table/CellRangeAddress.hpp> #include <com/sun/star/table/CellRangeAddress.hpp>
#include <com/sun/star/uno/XInterface.hpp>
#include <com/sun/star/uno/Reference.hxx> #include <com/sun/star/uno/Reference.hxx>
#include <com/sun/star/uno/XInterface.hpp>
using namespace css; using namespace css;
using namespace css::uno; using namespace css::uno;
...@@ -28,6 +29,7 @@ namespace sc_apitest ...@@ -28,6 +29,7 @@ namespace sc_apitest
{ {
class ScLabelRangesObj : public CalcUnoApiTest, class ScLabelRangesObj : public CalcUnoApiTest,
public apitest::XEnumerationAccess, public apitest::XEnumerationAccess,
public apitest::XIndexAccess,
public apitest::XLabelRanges public apitest::XLabelRanges
{ {
public: public:
...@@ -42,6 +44,10 @@ public: ...@@ -42,6 +44,10 @@ public:
// XEnumerationAccess // XEnumerationAccess
CPPUNIT_TEST(testCreateEnumeration); CPPUNIT_TEST(testCreateEnumeration);
// XIndexAccess
CPPUNIT_TEST(testGetByIndex);
CPPUNIT_TEST(testGetCount);
// XLabelRanges // XLabelRanges
CPPUNIT_TEST(testAddNew); CPPUNIT_TEST(testAddNew);
CPPUNIT_TEST(testRemoveByIndex); CPPUNIT_TEST(testRemoveByIndex);
...@@ -54,6 +60,7 @@ private: ...@@ -54,6 +60,7 @@ private:
ScLabelRangesObj::ScLabelRangesObj() ScLabelRangesObj::ScLabelRangesObj()
: CalcUnoApiTest("/sc/qa/extras/testdocuments") : CalcUnoApiTest("/sc/qa/extras/testdocuments")
, XIndexAccess(1)
{ {
} }
...@@ -87,7 +94,7 @@ void ScLabelRangesObj::tearDown() ...@@ -87,7 +94,7 @@ void ScLabelRangesObj::tearDown()
CPPUNIT_TEST_SUITE_REGISTRATION(ScLabelRangesObj); CPPUNIT_TEST_SUITE_REGISTRATION(ScLabelRangesObj);
} // end namespace } // namespace sc_apitest
CPPUNIT_PLUGIN_IMPLEMENT(); CPPUNIT_PLUGIN_IMPLEMENT();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment