From 6740443311268b7d918bf4f43134d64fb78a0109 Mon Sep 17 00:00:00 2001 From: Jens Carl Date: Tue, 15 Jan 2019 07:37:37 +0000 Subject: tdf#45904 Move XElementAccess Java tests to C++ Move XElementAccess Java tests to C++ for ScStyleFamiliesObj. Change-Id: I0c21e35f1c303bb430010b51795285c0a2e7e283 Reviewed-on: https://gerrit.libreoffice.org/66347 Tested-by: Jenkins Reviewed-by: Jens Carl --- sc/qa/extras/scstylefamiliesobj.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'sc/qa/extras/scstylefamiliesobj.cxx') diff --git a/sc/qa/extras/scstylefamiliesobj.cxx b/sc/qa/extras/scstylefamiliesobj.cxx index 6449537711a8..c283f939de87 100644 --- a/sc/qa/extras/scstylefamiliesobj.cxx +++ b/sc/qa/extras/scstylefamiliesobj.cxx @@ -8,10 +8,12 @@ */ #include +#include #include #include #include +#include #include #include #include @@ -19,12 +21,15 @@ #include +#include + using namespace css; using namespace css::uno; namespace sc_apitest { class ScStyleFamiliesObj : public CalcUnoApiTest, + public apitest::XElementAccess, public apitest::XIndexAccess, public apitest::XNameAccess { @@ -37,6 +42,10 @@ public: CPPUNIT_TEST_SUITE(ScStyleFamiliesObj); + // XElementAccess + CPPUNIT_TEST(testGetElementType); + CPPUNIT_TEST(testHasElements); + // XIndexAccess CPPUNIT_TEST(testGetByIndex); CPPUNIT_TEST(testGetCount); @@ -54,6 +63,7 @@ private: ScStyleFamiliesObj::ScStyleFamiliesObj() : CalcUnoApiTest("/sc/qa/extras/testdocuments") + , XElementAccess(cppu::UnoType::get()) , XIndexAccess(2) , XNameAccess("CellStyles") { -- cgit