summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorJens Carl <j.carl43@gmx.de>2019-01-13 19:15:06 +0000
committerJens Carl <j.carl43@gmx.de>2019-01-13 21:48:56 +0100
commit8e323a3fb2d359d29fdaee61f60ef6b0488fc942 (patch)
tree6fc40e8bf932df5ccabecc675d2be140b88badf1 /sc
parent823ce74283d5214204abee7b2765e86f094c32eb (diff)
tdf#45904 Move XElementAccess Java tests to C++
Move XElementAccess Java tests to C++ for ScDataPilotTablesObj. Change-Id: I33849462bfbc5fb55f97387c8ab33a834b398c55 Reviewed-on: https://gerrit.libreoffice.org/66269 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'sc')
-rw-r--r--sc/qa/extras/scdatapilottablesobj.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/sc/qa/extras/scdatapilottablesobj.cxx b/sc/qa/extras/scdatapilottablesobj.cxx
index 76dcdf9c86fa..44eef48f8d93 100644
--- a/sc/qa/extras/scdatapilottablesobj.cxx
+++ b/sc/qa/extras/scdatapilottablesobj.cxx
@@ -8,6 +8,7 @@
*/
#include <test/calc_unoapi_test.hxx>
+#include <test/container/xelementaccess.hxx>
#include <test/container/xenumerationaccess.hxx>
#include <test/container/xindexaccess.hxx>
#include <test/sheet/xdatapilottables.hxx>
@@ -15,6 +16,7 @@
#include <com/sun/star/container/XIndexAccess.hpp>
#include <com/sun/star/lang/XComponent.hpp>
#include <com/sun/star/sheet/XDataPilotDescriptor.hpp>
+#include <com/sun/star/sheet/XDataPilotTable2.hpp>
#include <com/sun/star/sheet/XDataPilotTables.hpp>
#include <com/sun/star/sheet/XDataPilotTablesSupplier.hpp>
#include <com/sun/star/sheet/XSpreadsheet.hpp>
@@ -26,6 +28,8 @@
#include <com/sun/star/uno/Reference.hxx>
+#include <cppu/unotype.hxx>
+
using namespace css;
using namespace css::uno;
using namespace com::sun::star;
@@ -34,6 +38,7 @@ namespace sc_apitest
{
class ScDataPilotTablesObj : public CalcUnoApiTest,
public apitest::XDataPilotTables,
+ public apitest::XElementAccess,
public apitest::XEnumerationAccess,
public apitest::XIndexAccess
{
@@ -50,6 +55,10 @@ public:
// XDataPilotTables
CPPUNIT_TEST(testXDataPilotTables);
+ // XElementAccess
+ CPPUNIT_TEST(testGetElementType);
+ CPPUNIT_TEST(testHasElements);
+
// XEnumerationAccess
CPPUNIT_TEST(testCreateEnumeration);
@@ -65,6 +74,7 @@ private:
ScDataPilotTablesObj::ScDataPilotTablesObj()
: CalcUnoApiTest("/sc/qa/extras/testdocuments")
+ , XElementAccess(cppu::UnoType<sheet::XDataPilotTable2>::get())
, XIndexAccess(1)
{
}