diff options
author | Jens Carl <j.carl43@gmx.de> | 2019-03-10 20:47:28 +0000 |
---|---|---|
committer | Jens Carl <j.carl43@gmx.de> | 2019-03-11 04:34:52 +0100 |
commit | 01cc0586f52969886b59140de11dda33deddb048 (patch) | |
tree | e3b19f305d95b8df4d88a4222a4b249a433e46f0 /sc | |
parent | 13a260f59e421f3e67845f8f2eb22b8f0f8fcaf0 (diff) |
tdf#45905 Move XElementAccess Java tests to C++
Move XElementAccess Java tests to C++ for ScStyleFamilyObj.
Change-Id: Iead77390b6b9f8f9fffd4a0a17ba786478637df9
Reviewed-on: https://gerrit.libreoffice.org/69019
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/extras/scstylefamilyobj.cxx | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sc/qa/extras/scstylefamilyobj.cxx b/sc/qa/extras/scstylefamilyobj.cxx index 561d492abebf..632fe4dbbe15 100644 --- a/sc/qa/extras/scstylefamilyobj.cxx +++ b/sc/qa/extras/scstylefamilyobj.cxx @@ -8,7 +8,9 @@ */ #include <test/calc_unoapi_test.hxx> +#include <test/container/xelementaccess.hxx> #include <test/container/xnameaccess.hxx> +#include <cppu/unotype.hxx> #include <com/sun/star/container/XIndexAccess.hpp> #include <com/sun/star/container/XNameAccess.hpp> @@ -16,6 +18,7 @@ #include <com/sun/star/lang/XComponent.hpp> #include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <com/sun/star/sheet/XSpreadsheetDocument.hpp> +#include <com/sun/star/style/XStyle.hpp> #include <com/sun/star/style/XStyleFamiliesSupplier.hpp> #include <com/sun/star/uno/XInterface.hpp> @@ -25,7 +28,9 @@ using namespace css; namespace sc_apitest { -class ScStyleFamilyObj : public CalcUnoApiTest, public apitest::XNameAccess +class ScStyleFamilyObj : public CalcUnoApiTest, + public apitest::XElementAccess, + public apitest::XNameAccess { public: ScStyleFamilyObj(); @@ -36,6 +41,10 @@ public: CPPUNIT_TEST_SUITE(ScStyleFamilyObj); + // XElementAccess + CPPUNIT_TEST(testGetElementType); + CPPUNIT_TEST(testHasElements); + // XNameAccess CPPUNIT_TEST(testGetByName); CPPUNIT_TEST(testGetElementNames); @@ -49,6 +58,7 @@ private: ScStyleFamilyObj::ScStyleFamilyObj() : CalcUnoApiTest("/sc/qa/extras/testdocuemts") + , XElementAccess(cppu::UnoType<style::XStyle>::get()) , XNameAccess("Default") { } |