summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorJens Carl <j.carl43@gmx.de>2019-03-07 22:28:10 +0000
committerJens Carl <j.carl43@gmx.de>2019-03-08 01:57:07 +0100
commit4a7771ffa8d98d08dffbba90fd42d1ab75e056fe (patch)
treec58b063bcec70206c353099da90b845b336a249b /sc
parent91cdf22b88a4f7bec243c8fb187627e766d3294c (diff)
tdf#45904 Move XNamed Java tests to C++
Move XNamed Java tests to C++ for ScDataPilotItemObj. Change-Id: I2fcffbd7e7329357ac30fa14716bf2bcf49c5666 Reviewed-on: https://gerrit.libreoffice.org/68891 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'sc')
-rw-r--r--sc/qa/extras/scdatapilotitemobj.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/sc/qa/extras/scdatapilotitemobj.cxx b/sc/qa/extras/scdatapilotitemobj.cxx
index b13c3b8b9dae..da2ccb9d0e51 100644
--- a/sc/qa/extras/scdatapilotitemobj.cxx
+++ b/sc/qa/extras/scdatapilotitemobj.cxx
@@ -8,6 +8,7 @@
*/
#include <test/calc_unoapi_test.hxx>
+#include <test/container/xnamed.hxx>
#include <test/sheet/datapilotitem.hxx>
#include <rtl/string.hxx>
@@ -31,7 +32,9 @@ using namespace css;
namespace sc_apitest
{
-class ScDataPilotItemObj : public CalcUnoApiTest, public apitest::DataPilotItem
+class ScDataPilotItemObj : public CalcUnoApiTest,
+ public apitest::DataPilotItem,
+ public apitest::XNamed
{
public:
virtual void setUp() override;
@@ -45,6 +48,9 @@ public:
// DataPilotItem
CPPUNIT_TEST(testProperties);
+ // XNamed
+ CPPUNIT_TEST(testGetName);
+
CPPUNIT_TEST_SUITE_END();
private:
@@ -54,6 +60,7 @@ private:
ScDataPilotItemObj::ScDataPilotItemObj()
: CalcUnoApiTest("/sc/qa/extras/testdocuments")
+ , XNamed("2")
{
}