[Libreoffice-commits] core.git: qadevOOo/objdsc sc/qa
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Sat Feb 2 01:40:21 UTC 2019
qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldsObj.csv | 2 --
sc/qa/extras/scdatapilotfieldsobj.cxx | 10 ++++++++++
2 files changed, 10 insertions(+), 2 deletions(-)
New commits:
commit 466f1236ac0034918ed07ac3cd37607383dff40f
Author: Jens Carl <j.carl43 at gmx.de>
AuthorDate: Sat Feb 2 00:03:19 2019 +0000
Commit: Jens Carl <j.carl43 at gmx.de>
CommitDate: Sat Feb 2 02:39:49 2019 +0100
tdf#45904 Move XElementAccess Java tests for C++
Move XElementAccess Java tests for C++ for ScDataPilotFieldsObj.
Change-Id: Iac23860a9194f45be6cda8f4546605ae69729693
Reviewed-on: https://gerrit.libreoffice.org/67268
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43 at gmx.de>
diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldsObj.csv b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldsObj.csv
index 4af41c784e15..7d42ccda9aa6 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldsObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDataPilotFieldsObj.csv
@@ -1,3 +1 @@
-"ScDataPilotFieldsObj";"com::sun::star::container::XElementAccess";"getElementType()"
-"ScDataPilotFieldsObj";"com::sun::star::container::XElementAccess";"hasElements()"
"ScDataPilotFieldsObj";"com::sun::star::container::XEnumerationAccess";"createEnumeration()"
diff --git a/sc/qa/extras/scdatapilotfieldsobj.cxx b/sc/qa/extras/scdatapilotfieldsobj.cxx
index 20b2c5359d6c..89b07762e638 100644
--- a/sc/qa/extras/scdatapilotfieldsobj.cxx
+++ b/sc/qa/extras/scdatapilotfieldsobj.cxx
@@ -8,9 +8,13 @@
*/
#include <test/calc_unoapi_test.hxx>
+#include <test/container/xelementaccess.hxx>
#include <test/container/xindexaccess.hxx>
#include <test/container/xnameaccess.hxx>
+#include <cppu/unotype.hxx>
+
+#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/container/XIndexAccess.hpp>
#include <com/sun/star/lang/XComponent.hpp>
#include <com/sun/star/sheet/XDataPilotDescriptor.hpp>
@@ -28,6 +32,7 @@ using namespace css;
namespace sc_apitest
{
class ScDataPilotFieldsObj : public CalcUnoApiTest,
+ public apitest::XElementAccess,
public apitest::XIndexAccess,
public apitest::XNameAccess
{
@@ -39,6 +44,10 @@ public:
CPPUNIT_TEST_SUITE(ScDataPilotFieldsObj);
+ // XElementAccess
+ CPPUNIT_TEST(testHasElements);
+ CPPUNIT_TEST(testGetElementType);
+
// XIndexAccess
CPPUNIT_TEST(testGetByIndex);
CPPUNIT_TEST(testGetCount);
@@ -56,6 +65,7 @@ private:
ScDataPilotFieldsObj::ScDataPilotFieldsObj()
: CalcUnoApiTest("/sc/qa/extras/testdocuments")
+ , XElementAccess(cppu::UnoType<beans::XPropertySet>::get())
, XIndexAccess(6)
, XNameAccess("")
{
More information about the Libreoffice-commits
mailing list