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

tdf#45904 Move XElementAccess Java tests to C++

Move XElementAccess Java tests to C++ for ScCellFieldsObj.

Change-Id: I140cb1f1d5f9cbccfd4dbb43d37c9cd48b7346e8
Reviewed-on: https://gerrit.libreoffice.org/64794
Tested-by: Jenkins
Reviewed-by: 's avatarJens Carl <j.carl43@gmx.de>
üst 47d76083
"ScCellFieldsObj";"com::sun::star::container::XElementAccess";"getElementType()"
"ScCellFieldsObj";"com::sun::star::container::XElementAccess";"hasElements()"
"ScCellFieldsObj";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
......@@ -8,6 +8,7 @@
*/
#include <test/calc_unoapi_test.hxx>
#include <test/container/xelementaccess.hxx>
#include <test/util/xrefreshable.hxx>
#include <com/sun/star/container/XIndexAccess.hpp>
......@@ -19,17 +20,22 @@
#include <com/sun/star/table/XCell.hpp>
#include <com/sun/star/text/XText.hpp>
#include <com/sun/star/text/XTextContent.hpp>
#include <com/sun/star/text/XTextField.hpp>
#include <com/sun/star/text/XTextFieldsSupplier.hpp>
#include <com/sun/star/uno/XInterface.hpp>
#include <com/sun/star/uno/Reference.hxx>
#include <cppu/unotype.hxx>
using namespace css;
using namespace css::uno;
namespace sc_apitest
{
class ScCellFieldsObj : public CalcUnoApiTest, public apitest::XRefreshable
class ScCellFieldsObj : public CalcUnoApiTest,
public apitest::XElementAccess,
public apitest::XRefreshable
{
public:
ScCellFieldsObj();
......@@ -40,6 +46,10 @@ public:
CPPUNIT_TEST_SUITE(ScCellFieldsObj);
// XElementAccess
CPPUNIT_TEST(testGetElementType);
CPPUNIT_TEST(testHasElements);
// XRefreshable
CPPUNIT_TEST(testAddRefreshListener);
CPPUNIT_TEST(testRefresh);
......@@ -53,6 +63,7 @@ private:
ScCellFieldsObj::ScCellFieldsObj()
: CalcUnoApiTest("/sc/qa/extras/testdocuments")
, XElementAccess(cppu::UnoType<text::XTextField>::get())
{
}
......
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