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

tdf#45904 Move XElementAccess Java tests to C++

Move XElementAccess Java tests to C++ for ScAutoFormatObj.

Change-Id: I926052ed79d6639ef3898f6486b626ca6cc042c3
Reviewed-on: https://gerrit.libreoffice.org/70095
Tested-by: Jenkins
Reviewed-by: 's avatarJens Carl <j.carl43@gmx.de>
üst 331e0c83
"ScAutoFormatObj";"com::sun::star::container::XElementAccess";"getElementType()"
"ScAutoFormatObj";"com::sun::star::container::XElementAccess";"hasElements()"
"ScAutoFormatObj";"com::sun::star::container::XNamed";"getName()"
"ScAutoFormatObj";"com::sun::star::container::XNamed";"setName()"
"ScAutoFormatObj";"com::sun::star::beans::XPropertySet";"getPropertySetInfo()"
......
......@@ -8,9 +8,11 @@
*/
#include <test/calc_unoapi_test.hxx>
#include <test/container/xelementaccess.hxx>
#include <test/container/xenumerationaccess.hxx>
#include <test/container/xindexaccess.hxx>
#include <test/sheet/tableautoformat.hxx>
#include <cppu/unotype.hxx>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/container/XIndexAccess.hpp>
......@@ -27,6 +29,7 @@ namespace sc_apitest
{
class ScAutoFormatObj : public CalcUnoApiTest,
public apitest::TableAutoFormat,
public apitest::XElementAccess,
public apitest::XEnumerationAccess,
public apitest::XIndexAccess
{
......@@ -42,6 +45,10 @@ public:
// TableAutoFormat
CPPUNIT_TEST(testTableAutoFormatProperties);
// XElementAccess
CPPUNIT_TEST(testGetElementType);
CPPUNIT_TEST(testHasElements);
// XEnumerationAccess
CPPUNIT_TEST(testCreateEnumeration);
......@@ -57,6 +64,7 @@ private:
ScAutoFormatObj::ScAutoFormatObj()
: CalcUnoApiTest("/sc/qa/extras/testdocuments")
, XElementAccess(cppu::UnoType<beans::XPropertySet>::get())
, XIndexAccess(16)
{
}
......
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