tdf#45904 Move XPropertySet Java tests to C++
Move XPropertySet Java tests to C++ for ScTableColumnObj.
Change-Id: Id77c4162acfe849993e7ffa392e9428b4f52bdd0
Reviewed-on: https://gerrit.libreoffice.org/71034
Tested-by: Jenkins
Reviewed-by: Jens Carl <[email protected]>
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 70a50be..5a12a91 100644
--- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnObj.csv
+++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableColumnObj.csv
@@ -1,10 +1,3 @@
"ScTableColumnObj";"com::sun::star::beans::XPropertySet";"getPropertySetInfo()"
"ScTableColumnObj";"com::sun::star::beans::XPropertySet";"setPropertyValue()"
"ScTableColumnObj";"com::sun::star::beans::XPropertySet";"getPropertyValue()"
"ScTableColumnObj";"com::sun::star::beans::XPropertySet";"addPropertyChangeListener()"
"ScTableColumnObj";"com::sun::star::beans::XPropertySet";"removePropertyChangeListener()"
"ScTableColumnObj";"com::sun::star::beans::XPropertySet";"addVetoableChangeListener()"
"ScTableColumnObj";"com::sun::star::beans::XPropertySet";"removeVetoableChangeListener()"
"ScTableColumnObj";"com::sun::star::table::TableColumn";"Width"
"ScTableColumnObj";"com::sun::star::table::TableColumn";"OptimalWidth"
"ScTableColumnObj";"com::sun::star::table::TableColumn";"IsVisible"
diff --git a/sc/qa/extras/sctablecolumnobj.cxx b/sc/qa/extras/sctablecolumnobj.cxx
index c65a868..75736d6 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/beans/xpropertyset.hxx>
#include <test/container/xnamed.hxx>
#include <test/table/xcellrange.hxx>
@@ -26,7 +27,10 @@ using namespace css;
namespace sc_apitest
{
class ScTableColumnObj : public CalcUnoApiTest, public apitest::XCellRange, public apitest::XNamed
class ScTableColumnObj : public CalcUnoApiTest,
public apitest::XCellRange,
public apitest::XNamed,
public apitest::XPropertySet
{
public:
ScTableColumnObj();
@@ -47,6 +51,13 @@ public:
// because TableColumnNames are fixed, test for an exception
CPPUNIT_TEST(testSetNameThrowsException);
// XPropertySet
CPPUNIT_TEST(testGetPropertySetInfo);
CPPUNIT_TEST(testGetPropertyValue);
CPPUNIT_TEST(testSetPropertyValue);
CPPUNIT_TEST(testPropertyChangeListener);
CPPUNIT_TEST(testVetoableChangeListener);
CPPUNIT_TEST_SUITE_END();
private:
@@ -57,6 +68,41 @@ ScTableColumnObj::ScTableColumnObj()
: CalcUnoApiTest("/sc/qa/extras/testdocuments")
, XCellRange("K1:K1")
, XNamed("K")
, XPropertySet({
"BottomBorder",
"BottomBorder2",
"CellProtection",
"CharLocale",
"CharLocaleAsian",
"CharLocaleComplex",
"CharPosture",
"CharPostureAsian",
"CharPostureComplex",
"ConditionalFormat",
"ConditionalFormatLocal",
"ConditionalFormatXML",
"DiagonalBLTR",
"DiagonalBLTR2",
"DiagonalTLBR",
"DiagonalTLBR2",
"HoriJustify",
"LeftBorder",
"LeftBorder2",
"NumberingRules",
"Orientation",
"RightBorder",
"RightBorder2",
"ShadowFormat",
"TableBorder",
"TableBorder2",
"TopBorder",
"TopBorder2",
"UserDefinedAttributes",
"Validation",
"ValidationLocal",
"ValidationXML",
"WritingMode",
})
{
}