summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnObj.csv2
-rw-r--r--sc/qa/extras/sctablecolumnobj.cxx9
2 files changed, 8 insertions, 3 deletions
diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnObj.csv b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnObj.csv
index a20406eb6b9a..70a50be2c57c 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnObj.csv
@@ -1,5 +1,3 @@
-"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";"setPropertyValue()"
"ScTableColumnObj";"com::sun::star::beans::XPropertySet";"getPropertyValue()"
diff --git a/sc/qa/extras/sctablecolumnobj.cxx b/sc/qa/extras/sctablecolumnobj.cxx
index 9a8b8c79e556..c65a8683b89c 100644
--- a/sc/qa/extras/sctablecolumnobj.cxx
+++ b/sc/qa/extras/sctablecolumnobj.cxx
@@ -8,6 +8,7 @@
*/
#include <test/calc_unoapi_test.hxx>
+#include <test/container/xnamed.hxx>
#include <test/table/xcellrange.hxx>
#include <com/sun/star/container/XIndexAccess.hpp>
@@ -25,7 +26,7 @@ using namespace css;
namespace sc_apitest
{
-class ScTableColumnObj : public CalcUnoApiTest, public apitest::XCellRange
+class ScTableColumnObj : public CalcUnoApiTest, public apitest::XCellRange, public apitest::XNamed
{
public:
ScTableColumnObj();
@@ -41,6 +42,11 @@ public:
CPPUNIT_TEST(testGetCellRangeByName);
CPPUNIT_TEST(testGetCellRangeByPosition);
+ // XNamed
+ CPPUNIT_TEST(testGetName);
+ // because TableColumnNames are fixed, test for an exception
+ CPPUNIT_TEST(testSetNameThrowsException);
+
CPPUNIT_TEST_SUITE_END();
private:
@@ -50,6 +56,7 @@ private:
ScTableColumnObj::ScTableColumnObj()
: CalcUnoApiTest("/sc/qa/extras/testdocuments")
, XCellRange("K1:K1")
+ , XNamed("K")
{
}