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>
This commit is contained in:
Jens Carl 2019-03-07 22:28:10 +00:00
parent 91cdf22b88
commit 4a7771ffa8
2 changed files with 8 additions and 3 deletions

View File

@ -1,5 +1,3 @@
"ScDataPilotItemObj";"com::sun::star::container::XNamed";"getName()"
"ScDataPilotItemObj";"com::sun::star::container::XNamed";"setName()"
"ScDataPilotItemObj";"com::sun::star::beans::XPropertySet";"getPropertySetInfo()"
"ScDataPilotItemObj";"com::sun::star::beans::XPropertySet";"setPropertyValue()"
"ScDataPilotItemObj";"com::sun::star::beans::XPropertySet";"getPropertyValue()"

1 ScDataPilotItemObj com::sun::star::container::XNamed com::sun::star::beans::XPropertySet getName() getPropertySetInfo()
ScDataPilotItemObj com::sun::star::container::XNamed getName()
ScDataPilotItemObj com::sun::star::container::XNamed setName()
1 ScDataPilotItemObj com::sun::star::beans::XPropertySet com::sun::star::beans::XPropertySet getPropertySetInfo() getPropertySetInfo()
2 ScDataPilotItemObj com::sun::star::beans::XPropertySet com::sun::star::beans::XPropertySet setPropertyValue() setPropertyValue()
3 ScDataPilotItemObj com::sun::star::beans::XPropertySet com::sun::star::beans::XPropertySet getPropertyValue() getPropertyValue()

View File

@ -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")
{
}