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

tdf#45904 Move XElementAccess Java tests to C++

Move XElementAccess Java tests to C++ for ScDrawPageObj.

Change-Id: I3a51c77f524311416ac054005c0632e5127efb79
Reviewed-on: https://gerrit.libreoffice.org/69871
Tested-by: Jenkins
Reviewed-by: 's avatarJens Carl <j.carl43@gmx.de>
üst ed6a71ea
"ScDrawPageObj";"com::sun::star::lang::XServiceInfo";"getImplementationName()"
"ScDrawPageObj";"com::sun::star::lang::XServiceInfo";"supportsService()"
"ScDrawPageObj";"com::sun::star::lang::XServiceInfo";"getSupportedServiceNames()"
"ScDrawPageObj";"com::sun::star::container::XElementAccess";"getElementType()"
"ScDrawPageObj";"com::sun::star::container::XElementAccess";"hasElements()"
"ScDrawPageObj";"com::sun::star::drawing::XShapes";"add()"
"ScDrawPageObj";"com::sun::star::drawing::XShapes";"remove()"
"ScDrawPageObj";"com::sun::star::drawing::XShapeGrouper";"group()"
......
......@@ -9,7 +9,9 @@
#include <test/calc_unoapi_test.hxx>
#include <test/helper/shape.hxx>
#include <test/container/xelementaccess.hxx>
#include <test/container/xindexaccess.hxx>
#include <cppu/unotype.hxx>
#include <com/sun/star/drawing/XDrawPage.hpp>
#include <com/sun/star/drawing/XDrawPages.hpp>
......@@ -26,7 +28,9 @@ using namespace css;
namespace sc_apitest
{
class ScDrawPageObj : public CalcUnoApiTest, public apitest::XIndexAccess
class ScDrawPageObj : public CalcUnoApiTest,
public apitest::XElementAccess,
public apitest::XIndexAccess
{
public:
ScDrawPageObj();
......@@ -37,6 +41,10 @@ public:
CPPUNIT_TEST_SUITE(ScDrawPageObj);
// XElementAccess
CPPUNIT_TEST(testGetElementType);
CPPUNIT_TEST(testHasElements);
// XIndexAccess
CPPUNIT_TEST(testGetByIndex);
CPPUNIT_TEST(testGetCount);
......@@ -49,6 +57,7 @@ private:
ScDrawPageObj::ScDrawPageObj()
: CalcUnoApiTest("/sc/qa/extras/testdocuments")
, XElementAccess(cppu::UnoType<drawing::XShape>::get())
, XIndexAccess(2)
{
}
......
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