diff options
author | Jens Carl <j.carl43@gmx.de> | 2019-01-23 19:20:04 +0000 |
---|---|---|
committer | Jens Carl <j.carl43@gmx.de> | 2019-01-24 18:40:09 +0100 |
commit | 9b891b0062e550430025b440a31211cdec74f3a8 (patch) | |
tree | f548587f5fad9ec1e54641fab1c15bd15a25d5dc /sc | |
parent | adbb6d9bbb1164d43b12594a1e99a5bece31cae6 (diff) |
tdf#45904 Move XElementAccess Java tests to C++
Move XElementAccess Java tests to C++ for ScSheetLinksObj.
Change-Id: Ibe4571cf75abf96edc4361d884c63be0a972cab2
Reviewed-on: https://gerrit.libreoffice.org/66819
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/extras/scsheetlinksobj.cxx | 10 | ||||
-rw-r--r-- | sc/qa/unoapi/sc_6.sce | 1 |
2 files changed, 9 insertions, 2 deletions
diff --git a/sc/qa/extras/scsheetlinksobj.cxx b/sc/qa/extras/scsheetlinksobj.cxx index 350924dcdd70..481be884ae41 100644 --- a/sc/qa/extras/scsheetlinksobj.cxx +++ b/sc/qa/extras/scsheetlinksobj.cxx @@ -11,6 +11,7 @@ #include <test/container/xelementaccess.hxx> #include <test/container/xenumerationaccess.hxx> #include <test/container/xindexaccess.hxx> +#include <test/container/xnameaccess.hxx> #include <cppu/unotype.hxx> #include <rtl/string.hxx> @@ -34,7 +35,8 @@ namespace sc_apitest class ScSheetLinksObj : public CalcUnoApiTest, public apitest::XElementAccess, public apitest::XEnumerationAccess, - public apitest::XIndexAccess + public apitest::XIndexAccess, + public apitest::XNameAccess { public: ScSheetLinksObj(); @@ -56,6 +58,11 @@ public: CPPUNIT_TEST(testGetByIndex); CPPUNIT_TEST(testGetCount); + // XNameAccess + CPPUNIT_TEST(testGetByName); + CPPUNIT_TEST(testGetElementNames); + CPPUNIT_TEST(testHasByName); + CPPUNIT_TEST_SUITE_END(); private: @@ -66,6 +73,7 @@ ScSheetLinksObj::ScSheetLinksObj() : CalcUnoApiTest("/sc/qa/extras/testdocuments") , XElementAccess(cppu::UnoType<beans::XPropertySet>::get()) , XIndexAccess(1) + , XNameAccess(m_directories.getURLFromSrc("/sc/qa/extras/testdocuments/ScSheetLinksObj.ods")) { } diff --git a/sc/qa/unoapi/sc_6.sce b/sc/qa/unoapi/sc_6.sce index ce0b7f7b0751..cb24d34d75c5 100644 --- a/sc/qa/unoapi/sc_6.sce +++ b/sc/qa/unoapi/sc_6.sce @@ -19,7 +19,6 @@ -o sc.ScNamedRangesObj # -o sc.ScShapeObj # -o sc.ScSheetLinkObj --o sc.ScSheetLinksObj -o sc.ScSpreadsheetSettings -o sc.ScSpreadsheetSettingsObj -o sc.ScStyleFamilyObj |