diff options
author | Jens Carl <j.carl43@gmx.de> | 2019-01-15 07:25:39 +0000 |
---|---|---|
committer | Jens Carl <j.carl43@gmx.de> | 2019-01-15 18:33:07 +0100 |
commit | e1e772e40f83a8f1d7c4947c5784e1fe8b640d5b (patch) | |
tree | d397becfd64d650e437ef51154abfb1991127632 /sc | |
parent | babb947e4c23240bf63acbf6657384f0e2c982bd (diff) |
tdf#45904 Move XIndexAccess Java tests to C++
Move XIndexAccess Java tests to C++ for ScStyleFamiliesObj.
Change-Id: I19f783597656a1e429ea592115497e11e8a0a6a2
Reviewed-on: https://gerrit.libreoffice.org/66346
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/extras/scstylefamiliesobj.cxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sc/qa/extras/scstylefamiliesobj.cxx b/sc/qa/extras/scstylefamiliesobj.cxx index 1a1135d1db7a..6449537711a8 100644 --- a/sc/qa/extras/scstylefamiliesobj.cxx +++ b/sc/qa/extras/scstylefamiliesobj.cxx @@ -8,6 +8,7 @@ */ #include <test/calc_unoapi_test.hxx> +#include <test/container/xindexaccess.hxx> #include <test/container/xnameaccess.hxx> #include <com/sun/star/container/XNameAccess.hpp> @@ -23,7 +24,9 @@ using namespace css::uno; namespace sc_apitest { -class ScStyleFamiliesObj : public CalcUnoApiTest, public apitest::XNameAccess +class ScStyleFamiliesObj : public CalcUnoApiTest, + public apitest::XIndexAccess, + public apitest::XNameAccess { public: ScStyleFamiliesObj(); @@ -34,6 +37,10 @@ public: CPPUNIT_TEST_SUITE(ScStyleFamiliesObj); + // XIndexAccess + CPPUNIT_TEST(testGetByIndex); + CPPUNIT_TEST(testGetCount); + // XNameAccess CPPUNIT_TEST(testGetByName); CPPUNIT_TEST(testGetElementNames); @@ -47,6 +54,7 @@ private: ScStyleFamiliesObj::ScStyleFamiliesObj() : CalcUnoApiTest("/sc/qa/extras/testdocuments") + , XIndexAccess(2) , XNameAccess("CellStyles") { } |