tdf#45904 Move XServiceInfo Java tests to C++

Move XServiceInfo Java tests to C++ for ScDrawPageObj.

Change-Id: Icc2c97296f549763068475be18c00a23b7cd73dc
Reviewed-on: https://gerrit.libreoffice.org/69872
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDrawPageObj.csv b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDrawPageObj.csv
index 7273ff2..c742ce5 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDrawPageObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDrawPageObj.csv
@@ -1,6 +1,3 @@
"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::drawing::XShapes";"add()"
"ScDrawPageObj";"com::sun::star::drawing::XShapes";"remove()"
"ScDrawPageObj";"com::sun::star::drawing::XShapeGrouper";"group()"
diff --git a/sc/qa/extras/scdrawpageobj.cxx b/sc/qa/extras/scdrawpageobj.cxx
index 9f8e919..de8d8ba 100644
--- a/sc/qa/extras/scdrawpageobj.cxx
+++ b/sc/qa/extras/scdrawpageobj.cxx
@@ -11,6 +11,7 @@
#include <test/helper/shape.hxx>
#include <test/container/xelementaccess.hxx>
#include <test/container/xindexaccess.hxx>
#include <test/lang/xserviceinfo.hxx>
#include <cppu/unotype.hxx>

#include <com/sun/star/drawing/XDrawPage.hpp>
@@ -30,7 +31,8 @@
{
class ScDrawPageObj : public CalcUnoApiTest,
                      public apitest::XElementAccess,
                      public apitest::XIndexAccess
                      public apitest::XIndexAccess,
                      public apitest::XServiceInfo
{
public:
    ScDrawPageObj();
@@ -49,6 +51,11 @@
    CPPUNIT_TEST(testGetByIndex);
    CPPUNIT_TEST(testGetCount);

    // XServiceInfo
    CPPUNIT_TEST(testGetImplementationName);
    CPPUNIT_TEST(testGetSupportedServiceNames);
    CPPUNIT_TEST(testSupportsService);

    CPPUNIT_TEST_SUITE_END();

private:
@@ -59,6 +66,7 @@
    : CalcUnoApiTest("/sc/qa/extras/testdocuments")
    , XElementAccess(cppu::UnoType<drawing::XShape>::get())
    , XIndexAccess(2)
    , XServiceInfo("ScPageObj", "com.sun.star.sheet.SpreadsheetDrawPage")
{
}