Kaydet (Commit) a7c72b37 authored tarafından Jens Carl's avatar Jens Carl

tdf#45904 Move XNamed Java tests to C++

Move XNamed Java tests to C++ for ScTableColumnObj.

Change-Id: I6037db86d917a5a64f19dc799d80e175e971b90d
Reviewed-on: https://gerrit.libreoffice.org/71033
Tested-by: Jenkins
Reviewed-by: 's avatarJens Carl <j.carl43@gmx.de>
üst c757117a
"ScTableColumnObj";"com::sun::star::container::XNamed";"getName()"
"ScTableColumnObj";"com::sun::star::container::XNamed";"setName()"
"ScTableColumnObj";"com::sun::star::beans::XPropertySet";"getPropertySetInfo()" "ScTableColumnObj";"com::sun::star::beans::XPropertySet";"getPropertySetInfo()"
"ScTableColumnObj";"com::sun::star::beans::XPropertySet";"setPropertyValue()" "ScTableColumnObj";"com::sun::star::beans::XPropertySet";"setPropertyValue()"
"ScTableColumnObj";"com::sun::star::beans::XPropertySet";"getPropertyValue()" "ScTableColumnObj";"com::sun::star::beans::XPropertySet";"getPropertyValue()"
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
*/ */
#include <test/calc_unoapi_test.hxx> #include <test/calc_unoapi_test.hxx>
#include <test/container/xnamed.hxx>
#include <test/table/xcellrange.hxx> #include <test/table/xcellrange.hxx>
#include <com/sun/star/container/XIndexAccess.hpp> #include <com/sun/star/container/XIndexAccess.hpp>
...@@ -25,7 +26,7 @@ using namespace css; ...@@ -25,7 +26,7 @@ using namespace css;
namespace sc_apitest namespace sc_apitest
{ {
class ScTableColumnObj : public CalcUnoApiTest, public apitest::XCellRange class ScTableColumnObj : public CalcUnoApiTest, public apitest::XCellRange, public apitest::XNamed
{ {
public: public:
ScTableColumnObj(); ScTableColumnObj();
...@@ -41,6 +42,11 @@ public: ...@@ -41,6 +42,11 @@ public:
CPPUNIT_TEST(testGetCellRangeByName); CPPUNIT_TEST(testGetCellRangeByName);
CPPUNIT_TEST(testGetCellRangeByPosition); CPPUNIT_TEST(testGetCellRangeByPosition);
// XNamed
CPPUNIT_TEST(testGetName);
// because TableColumnNames are fixed, test for an exception
CPPUNIT_TEST(testSetNameThrowsException);
CPPUNIT_TEST_SUITE_END(); CPPUNIT_TEST_SUITE_END();
private: private:
...@@ -50,6 +56,7 @@ private: ...@@ -50,6 +56,7 @@ private:
ScTableColumnObj::ScTableColumnObj() ScTableColumnObj::ScTableColumnObj()
: CalcUnoApiTest("/sc/qa/extras/testdocuments") : CalcUnoApiTest("/sc/qa/extras/testdocuments")
, XCellRange("K1:K1") , XCellRange("K1:K1")
, XNamed("K")
{ {
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment