summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorJens Carl <j.carl43@gmx.de>2019-01-23 18:58:30 +0000
committerJens Carl <j.carl43@gmx.de>2019-01-23 23:24:35 +0100
commitce218f3064f58a836be6f0fba75576bfbe031404 (patch)
treec5fbdc29178f281288141cb08090b6212ad00b4c /sc
parentcae2d0cda5d462889274a6ea0be30b8c0e9f8c6e (diff)
tdf#45904 Move XElementAccess Java tests to C++
Move XElementAccess Java tests to C++ for ScSheetLinksObj. Change-Id: I8265bb9234c93e8a6e64b55522e7f0543b3af7a9 Reviewed-on: https://gerrit.libreoffice.org/66815 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'sc')
-rw-r--r--sc/qa/extras/scsheetlinksobj.cxx11
1 files changed, 10 insertions, 1 deletions
diff --git a/sc/qa/extras/scsheetlinksobj.cxx b/sc/qa/extras/scsheetlinksobj.cxx
index 2d3b0d714732..2ec4ccf0be6e 100644
--- a/sc/qa/extras/scsheetlinksobj.cxx
+++ b/sc/qa/extras/scsheetlinksobj.cxx
@@ -8,8 +8,10 @@
*/
#include <test/calc_unoapi_test.hxx>
+#include <test/container/xelementaccess.hxx>
#include <test/container/xenumerationaccess.hxx>
+#include <cppu/unotype.hxx>
#include <rtl/string.hxx>
#include <com/sun/star/beans/XPropertySet.hpp>
@@ -28,7 +30,9 @@ using namespace css;
namespace sc_apitest
{
-class ScSheetLinksObj : public CalcUnoApiTest, public apitest::XEnumerationAccess
+class ScSheetLinksObj : public CalcUnoApiTest,
+ public apitest::XElementAccess,
+ public apitest::XEnumerationAccess
{
public:
ScSheetLinksObj();
@@ -39,6 +43,10 @@ public:
CPPUNIT_TEST_SUITE(ScSheetLinksObj);
+ // XElementAccess
+ CPPUNIT_TEST(testGetElementType);
+ CPPUNIT_TEST(testHasElements);
+
// XEnumerationAccess
CPPUNIT_TEST(testCreateEnumeration);
@@ -50,6 +58,7 @@ private:
ScSheetLinksObj::ScSheetLinksObj()
: CalcUnoApiTest("/sc/qa/extras/testdocuments")
+ , XElementAccess(cppu::UnoType<beans::XPropertySet>::get())
{
}