summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Carl <j.carl43@gmx.de>2019-03-10 20:50:31 +0000
committerJens Carl <j.carl43@gmx.de>2019-03-11 04:35:03 +0100
commitbf63df7a6f781f595ada126cb6f67806124ab7f8 (patch)
tree9c84925eee0c91296838e97a9780c2b177451615
parent01cc0586f52969886b59140de11dda33deddb048 (diff)
tdf#45904 Move XIndexAccess Java tests to C++
Move XIndexAccess Java tests to C++ for ScStyleFamilyObj. modified: sc/qa/extras/scstylefamilyobj.cxx Change-Id: I1ee22139effe5f3931fb40b46b9c5c5701fa415d Reviewed-on: https://gerrit.libreoffice.org/69020 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
-rw-r--r--qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleFamilyObj.csv2
-rw-r--r--sc/qa/extras/scstylefamilyobj.cxx7
2 files changed, 7 insertions, 2 deletions
diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleFamilyObj.csv b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleFamilyObj.csv
index 8c6fa00877c7..4c5519b5b7f8 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleFamilyObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScStyleFamilyObj.csv
@@ -1,5 +1,3 @@
"ScStyleFamilyObj";"com::sun::star::container::XNameReplace#optional";"replaceByName()"
"ScStyleFamilyObj";"com::sun::star::container::XNameContainer#optional";"insertByName()"
"ScStyleFamilyObj";"com::sun::star::container::XNameContainer#optional";"removeByName()"
-"ScStyleFamilyObj";"com::sun::star::container::XIndexAccess#optional";"getCount()"
-"ScStyleFamilyObj";"com::sun::star::container::XIndexAccess#optional";"getByIndex()"
diff --git a/sc/qa/extras/scstylefamilyobj.cxx b/sc/qa/extras/scstylefamilyobj.cxx
index 632fe4dbbe15..c9df85f5cc92 100644
--- a/sc/qa/extras/scstylefamilyobj.cxx
+++ b/sc/qa/extras/scstylefamilyobj.cxx
@@ -9,6 +9,7 @@
#include <test/calc_unoapi_test.hxx>
#include <test/container/xelementaccess.hxx>
+#include <test/container/xindexaccess.hxx>
#include <test/container/xnameaccess.hxx>
#include <cppu/unotype.hxx>
@@ -30,6 +31,7 @@ namespace sc_apitest
{
class ScStyleFamilyObj : public CalcUnoApiTest,
public apitest::XElementAccess,
+ public apitest::XIndexAccess,
public apitest::XNameAccess
{
public:
@@ -45,6 +47,10 @@ public:
CPPUNIT_TEST(testGetElementType);
CPPUNIT_TEST(testHasElements);
+ // XIndexAccess
+ CPPUNIT_TEST(testGetByIndex);
+ CPPUNIT_TEST(testGetCount);
+
// XNameAccess
CPPUNIT_TEST(testGetByName);
CPPUNIT_TEST(testGetElementNames);
@@ -59,6 +65,7 @@ private:
ScStyleFamilyObj::ScStyleFamilyObj()
: CalcUnoApiTest("/sc/qa/extras/testdocuemts")
, XElementAccess(cppu::UnoType<style::XStyle>::get())
+ , XIndexAccess(19)
, XNameAccess("Default")
{
}