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

tdf#45904 Move XElementAccess Java tests to C++

Move XElementAccess Java tests to C++ for ScAutoFormatsObj.

Change-Id: Ibd094955a1b811e0c5e06e8e4c80f357e54d8ac2
Reviewed-on: https://gerrit.libreoffice.org/69349
Tested-by: Jenkins
Reviewed-by: 's avatarJens Carl <j.carl43@gmx.de>
üst 73318008
"ScAutoFormatsObj";"com::sun::star::container::XElementAccess";"getElementType()"
"ScAutoFormatsObj";"com::sun::star::container::XElementAccess";"hasElements()"
"ScAutoFormatsObj";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
......@@ -8,12 +8,15 @@
*/
#include <test/calc_unoapi_test.hxx>
#include <test/container/xelementaccess.hxx>
#include <test/container/xindexaccess.hxx>
#include <test/container/xnameaccess.hxx>
#include <test/container/xnamecontainer.hxx>
#include <test/container/xnamereplace.hxx>
#include <cppu/unotype.hxx>
#include <com/sun/star/container/XNameContainer.hpp>
#include <com/sun/star/container/XNamed.hpp>
#include <com/sun/star/lang/XComponent.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/uno/XInterface.hpp>
......@@ -26,6 +29,7 @@ using namespace css;
namespace sc_apitest
{
class ScAutoFormatsObj : public CalcUnoApiTest,
public apitest::XElementAccess,
public apitest::XIndexAccess,
public apitest::XNameAccess,
public apitest::XNameContainer,
......@@ -40,6 +44,10 @@ public:
CPPUNIT_TEST_SUITE(ScAutoFormatsObj);
// XElementAccess
CPPUNIT_TEST(testGetElementType);
CPPUNIT_TEST(testHasElements);
// XIndexAccess
CPPUNIT_TEST(testGetByIndex);
CPPUNIT_TEST(testGetCount);
......@@ -67,6 +75,7 @@ private:
ScAutoFormatsObj::ScAutoFormatsObj()
: CalcUnoApiTest("/sc/qa/extras/testdocuments")
, XElementAccess(cppu::UnoType<container::XNamed>::get())
, XIndexAccess(2)
, XNameAccess("Default")
, XNameContainer("ScAutoFormatsObj")
......
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