Kaydet (Commit) bf63df7a authored tarafından Jens Carl's avatar Jens Carl

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: 's avatarJens Carl <j.carl43@gmx.de>
üst 01cc0586
"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()"
......@@ -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")
{
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment