diff options
author | Jens Carl <j.carl43@gmx.de> | 2019-01-15 07:37:37 +0000 |
---|---|---|
committer | Jens Carl <j.carl43@gmx.de> | 2019-01-16 00:30:32 +0100 |
commit | 6740443311268b7d918bf4f43134d64fb78a0109 (patch) | |
tree | 07e74bea080a91584619498e248b96bf920d7d45 /sc/qa/extras/scstylefamiliesobj.cxx | |
parent | 8b461713c0c86bc19af739aada4b1345cfa5dfbe (diff) |
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 <j.carl43@gmx.de>
Diffstat (limited to 'sc/qa/extras/scstylefamiliesobj.cxx')
-rw-r--r-- | sc/qa/extras/scstylefamiliesobj.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
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 <test/calc_unoapi_test.hxx> +#include <test/container/xelementaccess.hxx> #include <test/container/xindexaccess.hxx> #include <test/container/xnameaccess.hxx> #include <com/sun/star/container/XNameAccess.hpp> +#include <com/sun/star/container/XNameContainer.hpp> #include <com/sun/star/lang/XComponent.hpp> #include <com/sun/star/sheet/XSpreadsheetDocument.hpp> #include <com/sun/star/style/XStyleFamiliesSupplier.hpp> @@ -19,12 +21,15 @@ #include <com/sun/star/uno/Reference.hxx> +#include <cppu/unotype.hxx> + 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<container::XNameContainer>::get()) , XIndexAccess(2) , XNameAccess("CellStyles") { |