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

tdf#45904 Move XIndexAccess Java tests to C++

Move XIndexAccess Java tests to C++ for ScDDELinksObj.

Change-Id: Ic67c2078b0e439d7209d142c7461a2f858e04ad3
Reviewed-on: https://gerrit.libreoffice.org/66557
Tested-by: Jenkins
Reviewed-by: 's avatarJens Carl <j.carl43@gmx.de>
üst 0ea7692d
"ScDDELinksObj";"com::sun::star::container::XIndexAccess";"getCount()"
"ScDDELinksObj";"com::sun::star::container::XIndexAccess";"getByIndex()"
"ScDDELinksObj";"com::sun::star::container::XElementAccess";"getElementType()"
"ScDDELinksObj";"com::sun::star::container::XElementAccess";"hasElements()"
"ScDDELinksObj";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
......@@ -8,6 +8,7 @@
*/
#include <test/calc_unoapi_test.hxx>
#include <test/container/xindexaccess.hxx>
#include <test/container/xnameaccess.hxx>
#include <rtl/ustring.hxx>
......@@ -31,7 +32,9 @@ using namespace com::sun::star;
namespace sc_apitest
{
class ScDDELinksObj : public CalcUnoApiTest, public apitest::XNameAccess
class ScDDELinksObj : public CalcUnoApiTest,
public apitest::XIndexAccess,
public apitest::XNameAccess
{
public:
ScDDELinksObj();
......@@ -42,6 +45,10 @@ public:
CPPUNIT_TEST_SUITE(ScDDELinksObj);
// XIndexAccess
CPPUNIT_TEST(testGetByIndex);
CPPUNIT_TEST(testGetCount);
// XNameAccess
CPPUNIT_TEST(testGetByName);
CPPUNIT_TEST(testGetElementNames);
......@@ -55,6 +62,7 @@ private:
ScDDELinksObj::ScDDELinksObj()
: CalcUnoApiTest("/sc/qa/extras/testdocuments")
, XIndexAccess(1)
, XNameAccess("soffice|"
+ m_directories.getURLFromSrc("/sc/qa/unoapi/testdocuments/ScDDELinksObj.ods")
+ "!Sheet1.A1")
......
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